-
Notifications
You must be signed in to change notification settings - Fork 56
/
docker-compose.yml
71 lines (71 loc) · 2.05 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3.1"
services:
expoterhub:
image: nexclipper/exporterhub:${front_tag}
ports:
- "${SERVICE_PORT}:3000"
environment:
# You can add and modify below setup to './.env' file for externel configuration without security issue.
# and you can check src/config.js .env.production entrypoint.sh
SERVICE_URL: ${SERVICE_URL}
API_SERVER: ${API_SERVER}
SERVICE_PUBLIC: "n"
CLIENT_ID: ${CLIENT_ID}
CLIENT_SECRETS: ${CLIENT_SECRETS}
depends_on:
- api
maria_db:
image: mariadb:10.4.17
command:
- --default-authentication-plugin=mysql_native_password
- --max-allowed-packet=268435456
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_general_ci
- --skip-character-set-client-handshake
restart: always
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: exporterhub
MYSQL_USER: root
MYSQL_PASSWORD: secret
volumes:
- ./db_data:/var/lib/mysql/
scheduler:
image: nexclipper/exporterhub-api:${api_tag}
restart: always
env_file:
- ./.env
environment:
APP_DB_ENGINE: django.db.backends.mysql
DB_NAME: exporterhub
DB_USER: root
DB_PASSWORD: secret
DB_HOST: maria_db
DB_PORT: "3306"
APP_STAT: "scheduler"
# You can add and modify below setup to './.env' file for externel configuration without security issue.
SECRET_KEY: ${SECRET_KEY}
depends_on:
- maria_db
- api
api:
image: nexclipper/exporterhub-api:${api_tag}
restart: always
ports:
- "8000:8000"
env_file:
- ./.env
environment:
APP_DB_ENGINE: django.db.backends.mysql
DB_NAME: exporterhub
DB_USER: root
DB_PASSWORD: secret
DB_HOST: maria_db
DB_PORT: "3306"
APP_STAT: "server"
# You can add and modify below setup to './.env' file for externel configuration without security issue.
ORGANIZATION: ${ORGANIZATION}
SECRET_KEY: ${SECRET_KEY}
ALGORITHM: ${ALGORITHM}
depends_on:
- maria_db