-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (80 loc) · 1.93 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.6'
services:
data-workflow:
image: data-workflow
build:
dockerfile: Dockerfile
context: ./
secrets:
- data_workflow_mysql.conf
volumes:
- static_volume:/code/DataWorkflow/staticfiles
- ./DataWorkflow:/code/DataWorkflow
- ${DATA_WORKFLOW_DATA}:/code/DataWorkflow/data
networks:
- nginx-proxy
links:
- database
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
tag: data-workflow.django
restart: unless-stopped
reverse-proxy:
image: nginx:1.19
secrets:
- data_workflow_htpasswd
expose:
- "1236"
environment:
- NGINX_PORT=1236
- VIRTUAL_HOST=${DATA_WORKFLOW_DOMAIN}
- LETSENCRYPT_HOST=${DATA_WORKFLOW_DOMAIN}
- LETSENCRYPT_EMAIL=${LETSENCRYPT_EMAIL}
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- static_volume:/code/DataWorkflow/staticfiles
links:
- data-workflow
networks:
- nginx-proxy
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
tag: data-workflow.nginx
restart: unless-stopped
database:
image: mariadb:10.4
environment:
- MYSQL_DATABASE=data_workflow
- MYSQL_USER=${DATA_WORKFLOW_DB_USER}
- MYSQL_PASSWORD=${DATA_WORKFLOW_DB_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DATA_WORKFLOW_ROOT_PASSWORD}
volumes:
- database:/var/lib/mysql
expose:
- "3306"
ports:
- "127.0.0.1:33306:3306"
networks:
- nginx-proxy
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: data-workflow.mariadb
restart: unless-stopped
volumes:
static_volume: {}
database:
secrets:
data_workflow_mysql.conf:
file: ${DATA_WORKFLOW_MYSQL_CONF_PATH}
data_workflow_htpasswd:
file: ${DATA_WORKFLOW_HTPASSWD}
networks:
nginx-proxy:
external:
name: nginx-proxy