-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (76 loc) · 1.62 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.8"
services:
mysql_server:
image: mysql:8.0
environment:
- MYSQL_DATABASE=test_db
- MYSQL_USER=dan
- MYSQL_PASSWORD=secret
- MYSQL_ROOT_PASSWORD=secret
volumes:
- ./MySqlDb:/var/lib/mysql
ports:
- 3306:3306
mongodb:
image: mongo
container_name: mongodb
environment:
- PUID=1000
- PGID=1000
volumes:
- './mongodb/database:/data/db'
ports:
- 27017:27017
restart: "unless-stopped"
authenticator:
build:
context: './Authentication'
dockerfile: Dockerfile
command: python3 ./script.py
ports:
- 3005:3005
volumes:
- ./Authentication:/app
restart: unless-stopped
analytics-service:
build:
context: './Analytics-Service'
dockerfile: Dockerfile
command: sh -c "sleep 4s ; python3 ./script.py"
ports:
- 3001:3001
volumes:
- ./Analytics-Service:/app
restart: unless-stopped
depends_on:
- mysql_server
- mongodb
app:
build:
context: './Admin-App'
dockerfile: Dockerfile
command: node index.js
ports:
- 3000:3000
volumes:
- ./Admin-App:/app
- '/app/node_modules'
restart: "unless-stopped"
depends_on:
- mysql_server
- authenticator
- analytics-service
user_app:
build:
context: './User-App'
dockerfile: Dockerfile
command: node app.js
ports:
- 3002:3002
volumes:
- ./User-App:/app
- '/app/node_modules'
restart: "unless-stopped"
depends_on:
- analytics-service
- mongodb