-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
89 lines (77 loc) · 1.91 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
version: '3.6'
# //////////////////////////////////////////////////////////////////////////////
# SERVICES
# //////////////////////////////////////////////////////////////////////////////
services:
# ============== SDP DATABASE (MySQL) ==============
sdp-db:
container_name: sdp-db
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- ./database:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=antonio
- MYSQL_DATABASE=sdp
- MYSQL_USER=antonio
- MYSQL_PASSWORD=antonio
networks:
- sdp-net
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: pma
environment:
PMA_HOST: sdp-db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80
networks:
- sdp-net
# ============== SDP CONTROLLER ==============
sdp-controller:
container_name: sdp-controller
build:
context: ./controller
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- ./data/certs:/controller/certs
networks:
- sdp-net
depends_on:
- sdp-db
# ============== SDP GATEWAY ==============
sdp-gateway:
container_name: sdp-gateway
build:
context: ./gateway
dockerfile: Dockerfile
ports:
- "4444:4444"
volumes:
- ./data/certs:/gateway/certs
networks:
- sdp-net
depends_on:
- sdp-db
# ============== SDP CLIENT ==============
sdp-client:
container_name: sdp-client
build:
context: ./client
dockerfile: Dockerfile
volumes:
- ./data/certs:/client/certs
networks:
- sdp-net
depends_on:
- sdp-db
# //////////////////////////////////////////////////////////////////////////////
# NETWORKS
# //////////////////////////////////////////////////////////////////////////////
networks:
sdp-net: {}