-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (69 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
78 lines (69 loc) · 1.52 KB
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
version: '3'
services:
mysql:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: iacf12345678
volumes:
- mysql-data:/var/lib/mysql
- ../dump/iac.sql:/docker-entrypoint-initdb.d/dump.sql
- ../dump/create-user.sql:/docker-entrypoint-initdb.d/create-user.sql
# command:
# - init-file=/docker-entrypoint-initdb.d/create-user.sql
# - mysql -u root -p"$${MYSQL_ROOT_PASSWORD}" iac < /docker-entrypoint-initdb.d/dump.sql
ports:
- "3306:3306"
networks:
- backend
mongodb:
image: mongo:latest
volumes:
- mongodb-data:/data/db
- ../dump/IAC_CFG:/docker-entrypoint-initdb.d/dump
#command: mongod --bind_ip_all --replSet rs0
# echo "Restoring MongoDB dump..."
# mongorestore /db:IAC_CFG /uri:mongodb://localhost:27017 /docker-entrypoint-initdb.d/dump
ports:
- "27017:27017"
networks:
- backend
app-server:
image: iac
depends_on:
- mysql
- mongodb
ports:
- "8080:8080"
networks:
- backend
web-server:
image: iac-ui
depends_on:
- app-server
ports:
- "8000:8000"
networks:
- backend
- frontend
signalr-server:
image: iac-signalrsrv
ports:
- "8222:8222"
networks:
- backend
- frontend
mqtt-client:
image: iac-mqtt
depends_on:
- mysql
- mongodb
- app-server
networks:
- backend
volumes:
mysql-data:
mongodb-data:
networks:
backend:
frontend:
driver: bridge