-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
executable file
·88 lines (83 loc) · 1.72 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
version: "3.7"
services:
backend_api:
build:
context: .
dockerfile: ./backend-api-Dockerfile
restart: always
ports:
- "5001:5001"
depends_on:
- redis
networks:
- backend
- frontend
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./settings:/settings
workers_api:
build:
context: .
dockerfile: ./backend-workers-Dockerfile
restart: always
privileged: true
depends_on:
- redis
- mongodb
networks:
- backend
- frontend
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./settings:/settings
- ${SRCVBFOLDER}:${DSTVBFOLDER}
frontend_website:
build:
context: .
dockerfile: ./frontend-Dockerfile
restart: always
ports:
- "5000:5000"
depends_on:
- backend_api
links:
- backend_api
networks:
- backend
- frontend
redis:
image: redis
command: redis-server --requirepass changeme_927dhgs810d712fxs1
networks:
- backend
- frontend
ports:
- "6379:6379"
logging:
driver: none
mongodb:
build:
context: .
dockerfile: ./mongodb-Dockerfile
networks:
- backend
- frontend
ports:
- "27017:27017"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- ./folders/database:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: changeme_498fjh29hd61fsaqyu
MONGO_INITDB_ROOT_PASSWORD: changeme_0dk28de6g1s8ghwsqw
command: mongod --auth
logging:
driver: none
networks:
frontend:
internal: false
backend:
internal: true