-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (52 loc) · 1.2 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
version: "3.7"
services:
parser:
restart: always
build: ./parser
command: "pipenv run python ./run.py"
expose:
- ${PARSER_PORT}
env_file:
- .env
volumes:
- ./parser:/parser
mongo:
restart: always
image: mongo:latest
volumes:
- ./etc/data:/data/db
- ./etc/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro
expose:
- ${MONGO_PORT}
updater:
restart: always
build: ./updater
command: "pipenv run python ./run.py"
expose:
- ${UPDATER_PORT}
depends_on:
- mongo
env_file:
- .env
volumes:
- ./updater:/updater
api:
restart: always
build: ./api
command: "pipenv run python ./run.py"
depends_on:
- mongo
expose:
- ${API_PORT}
env_file:
- .env
volumes:
- ./api:/api
nginx:
image: nginx:latest
depends_on:
- api
ports:
- 80:80
volumes:
- ./etc/nginx.conf:/etc/nginx/conf.d/api.conf