-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (90 loc) · 1.99 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.7"
services:
mongo:
image: mongo:4
restart: ${RESTART}
volumes:
- ./database:/data/db
ports:
- ${MONGO_PORT}:27017
nginx:
image: nginx
restart: ${RESTART}
ports:
- ${HTTP_PORT}:80
volumes:
- ./frontend/dist:/var/www/public
- ./etc/nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- backend
redis:
image: redis
restart: ${RESTART}
ports:
- ${REDIS_PORT}:6379
backend:
image: node
restart: ${RESTART}
ports:
- ${BACKEND_PORT}:3000
- ${BACKEND_DEBUG_PORT}:9229
depends_on:
- mongo
- redis
volumes:
- ./backend:/var/www
working_dir: /var/www
environment:
- MONGO_HOST=${MONGO_HOST}
- MONGO_PORT=${MONGO_PORT}
- MONGO_DB=wbsync
- REDIS=redis
command: npm run start
orders_updater:
image: node:15-alpine
depends_on:
- mongo
volumes:
- ./syncer:/var/www
working_dir: /var/www
environment:
- MONGO_HOST=mongo
- MONGO_DB=wbsync
- FULL_UPDATE=${FULL_UPDATE}
- DEBUG=${DEBUG}
command: npm run orders
stocks_updater:
image: node:15-alpine
depends_on:
- mongo
volumes:
- ./syncer:/var/www
- ./backend/modules:/var/www/backend_modules
- ${STOCKS_IMPORT_FOLDER}:/var/www/import
working_dir: /var/www
environment:
- MONGO_HOST=mongo
- MONGO_DB=wbsync
- DEBUG=${DEBUG}
- JSON_PATH=${STOCKS_IMPORT_CONTAINER_PATH}
command: npm run stocks
updater:
image: node:15-alpine
restart: ${RESTART}
ports:
- ${UPDATER_DEBUG_PORT}:9229
depends_on:
- mongo
- redis
volumes:
- ./syncer:/var/www
- ${STOCKS_IMPORT_FOLDER}:/var/www/import
working_dir: /var/www
environment:
- MONGO_HOST=mongo
- MONGO_DB=wbsync
- DEBUG=${DEBUG}
- JSON_PATH=${STOCKS_IMPORT_CONTAINER_PATH}
- FULL_UPDATE=1
- REDIS=redis
command: npm run job