-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (64 loc) · 1.46 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
version: "3"
services:
####################### tools
nt_s_tools:
build:
context: .
dockerfile: dockerfiles/Dockerfile_python
command: gunicorn -c nt_s_tools/gunicorn.conf.py nt_s_tools.wsgi:application
restart: always
container_name: nt-s-tools
ports:
- "22010:10010"
env_file:
- dev.env
volumes:
- ./nt_s_common:/www/nt_s_common:cached
- ./nt_s_tools:/www/nt_s_tools:cached
networks:
- dev_network
logging:
driver: "json-file"
options:
max-size: "500m"
####################### nt_web
nt_web:
build:
context: .
dockerfile: dockerfiles/Dockerfile_web
command: pm2-runtime start npm --name "nt-web" -- run start
restart: always
container_name: nt-web
ports:
- "22001:3000"
env_file:
- dev.env
networks:
- dev_network
logging:
driver: "json-file"
options:
max-size: "500m"
######################## crontab
nt_cron_sync_data:
build:
context: .
dockerfile: dockerfiles/Dockerfile_python
container_name: nt_cron_sync_data
command: python /www/nt_s_common/cron/sync_data.py
env_file:
- dev.env
restart: always
volumes:
- ./nt_s_common:/www/nt_s_common:cached
networks:
- dev_network
logging:
driver: "json-file"
options:
max-size: "500m"
# network config
networks:
dev_network:
external:
name: dev_network