-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (106 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '2.0'
services:
nginx:
image: nginx:latest
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
networks:
all:
ipv4_address: 172.16.238.6
logging:
options:
max-file: "5"
max-size: 10m
db:
image: mongo:4.0
restart: always
volumes:
- mongodb_data:/data/db
- mongodb_config:/data/configdb
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: compose
networks:
all:
ipv4_address: 172.16.238.7
logging:
options:
max-file: "5"
max-size: 10m
redis:
image: redis:5.0.10
restart: always
ports:
- 6379:6379
volumes:
- redisdata:/data
networks:
all:
ipv4_address: 172.16.238.8
logging:
options:
max-file: "5"
max-size: 10m
segmently_django:
build: ./segmently_django
restart: always
command: >
bash -c "chmod a+x ./run.sh
&& ./run.sh"
ports:
- 8000:8000
environment:
DOCKER: docker
depends_on:
- db
networks:
all:
ipv4_address: 172.16.238.2
logging:
options:
max-file: "5"
max-size: 10m
segmently_django_tasks:
build: ./segmently_django
restart: always
command: >
bash -c "chmod a+x ./run_tasks.sh
&& ./run_tasks.sh"
environment:
DOCKER: docker
depends_on:
- db
networks:
all:
ipv4_address: 172.16.238.11
logging:
options:
max-file: "5"
max-size: 10m
segmently_dashboard:
build: ./segmently_dashboard
restart: always
ports:
- 8080:80
networks:
all:
ipv4_address: 172.16.238.5
logging:
options:
max-file: "5"
max-size: 10m
volumes:
mongodb_data:
mongodb_config:
redisdata:
networks:
all:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.16.238.0/24