-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
97 lines (91 loc) · 2.22 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
87
88
89
90
91
92
93
94
95
96
97
version: '3.4'
secrets:
mongodb_root_password:
file: ${MONGODB_LOCAL_ROOT_PASSWORD_FILE}
networks:
mongodb:
driver: bridge
uwsgi:
driver: bridge
services:
parser:
build:
context: ./docker/parser
args:
- TIMEZONE=${TIMEZONE}
- PUID=${PUID}
- PGID=${PGID}
- PYTHON_VERSION=${PYTHON_VERSION}
volumes:
- ./parser/:/var/parser/
environment:
- MONGO_INITDB_DATABASE
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongodb_root_password
secrets:
- mongodb_root_password
networks:
- mongodb
depends_on:
- mongodb
nginx:
build:
context: ./docker/nginx
args:
- PUID=${PUID}
- PGID=${PGID}
restart: on-failure
volumes:
- ./api/:/var/www/api/
- ./docker/nginx/configs/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/configs/sites/:/etc/nginx/sites-available/
- ./docker/shared/data/logs/nginx/:/var/log/nginx/
ports:
- "${HTTP_PORT}:8080"
networks:
- uwsgi
depends_on:
- uwsgi
uwsgi:
build:
context: ./docker/uwsgi
args:
- TIMEZONE=${TIMEZONE}
- PUID=${PUID}
- PGID=${PGID}
- PYTHON_VERSION=${PYTHON_VERSION}
restart: on-failure
volumes:
- ./api/:/var/www/api/
- ./docker/uwsgi/configs/uwsgi.ini:/etc/uwsgi/uwsgi.ini
environment:
- MONGO_INITDB_DATABASE
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongodb_root_password
secrets:
- mongodb_root_password
networks:
- uwsgi
- mongodb
depends_on:
- mongodb
mongodb:
build:
context: ./docker/mongodb
args:
- TIMEZONE=${TIMEZONE}
- PUID=${PUID}
- PGID=${PGID}
- MONGODB_VERSION=${MONGODB_VERSION}
restart: on-failure
volumes:
- ${MONGODB_LOCAL_DATA_PATH}:/data/db
- ./docker/shared/data/logs/mongodb:/var/log/mongodb
environment:
- MONGO_INITDB_DATABASE
- MONGO_INITDB_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongodb_root_password
secrets:
- mongodb_root_password
networks:
- mongodb