-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
76 lines (75 loc) · 2.01 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
version: '3.3'
services:
mongodb:
image: mongo:${MONGO_TAG}
container_name: mongodb
# restart: always
volumes:
- ./storage/mongodb:/data/db
command: ["mongod", "--quiet", "--logpath", "/var/log/mongodb/mongod.log"]
ports:
- 127.0.0.1:27017-27019:27017-27019
mcrit-server:
image: mcrit-server:${MCRIT_TAG}
build:
context: ./docker/mcrit/
args:
MCRIT_TAG: "${MCRIT_TAG}"
MCRIT_BRANCH: "${MCRIT_BRANCH}"
container_name: mcrit-server
depends_on:
- mongodb
volumes:
- ./config/:/opt/mcrit/mcrit/config/
entrypoint:
- /entry_server.sh
ports:
- 127.0.0.1:8000:8000
mcrit-worker:
image: mcrit-worker:${MCRIT_TAG}
build:
context: ./docker/mcrit/
args:
MCRIT_TAG: "${MCRIT_TAG}"
MCRIT_BRANCH: "${MCRIT_BRANCH}"
container_name: mcrit-worker
depends_on:
- mongodb
volumes:
- ./config/:/opt/mcrit/mcrit/config/
entrypoint:
- /entry_worker.sh
mcritweb:
image: mcritweb:${MCRITWEB_TAG}
build:
context: ./docker/mcritweb/
args:
MCRITWEB_BRANCH: "${MCRITWEB_BRANCH}"
MCRIT_TAG: "${MCRIT_TAG}"
container_name: mcritweb
depends_on:
- mcrit-server
volumes:
- ./storage/mcritweb:/opt/mcritweb/instance
entrypoint:
- /entry_web_prod.sh
ports:
- 127.0.0.1:5000:5000
nginx:
image: nginx:latest
depends_on:
- mcrit-server
- mcrit-worker
- mcritweb
# restart: always
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/uwsgi_params:/etc/nginx/uwsgi_params
- ./nginx/mcritweb_plain.conf:/etc/nginx/sites-enabled/mcritweb_plain.conf
# alternatively, if deployment with TLS is desired, make sure to fill the files in ./nginx/ssl
# - ./nginx/mcritweb_ssl.conf:/etc/nginx/sites-enabled/mcritweb_ssl.conf
# - ./nginx/ssl:/opt/ssl_certificates
- ./logs/nginx:/var/log/nginx
ports:
- 0.0.0.0:80:80
- 0.0.0.0:443:443