-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.dev.yml
115 lines (109 loc) · 2.56 KB
/
docker-compose.dev.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
107
108
109
110
111
112
113
114
115
version: "3"
services:
origin-server:
build:
context: ./origin-server
dockerfile: Dockerfile
image: re-mlac-origin-server
restart: always
ports:
- "8080:8080"
environment:
TZ: "Asia/Seoul"
ACTIVE_PROFILE: dev
MYSQL_HOST: mysql-db
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: qwer1234
ANALYSIS_SERVER_HOST: ${ANALYSIS_SERVER_HOST}
ANALYSIS_SERVER_PORT: ${ANALYSIS_SERVER_PORT}
VIRTUAL_FIREWALL_HOST: virtual-firewall
VIRTUAL_FIREWALL_PORT: 8080
VIRTUAL_WEB_SERVER_HOST: virtual-web-server
VIRTUAL_WEB_SERVER_PORT: 8080
VIRTUAL_WEB_APPLICATION_SERVER_HOST: virtual-web-application-server
VIRTUAL_WEB_APPLICATION_SERVER_PORT: 8080
networks:
- mlac
depends_on:
- mysql-db
- virtual-firewall
- virtual-web-server
- virtual-web-application-server
virtual-firewall:
build:
context: ./virtual-firewall
dockerfile: Dockerfile
image: re-mlac-virtual-firewall
restart: always
environment:
TZ: "Asia/Seoul"
ACTIVE_PROFILE: dev
MYSQL_HOST: mysql-db
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: qwer1234
networks:
- mlac
ports:
- "8081:8080"
depends_on:
- mysql-db
virtual-web-server:
build:
context: ./virtual-web-server
dockerfile: Dockerfile
image: re-mlac-virtual-web-server
restart: always
environment:
TZ: "Asia/Seoul"
ACTIVE_PROFILE: dev
MYSQL_HOST: mysql-db
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: qwer1234
networks:
- mlac
ports:
- "8082:8080"
depends_on:
- mysql-db
virtual-web-application-server:
build:
context: ./virtual-web-application-server
dockerfile: Dockerfile
image: re-mlac-virtual-web-application-server
restart: always
environment:
TZ: "Asia/Seoul"
ACTIVE_PROFILE: dev
MYSQL_HOST: mysql-db
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_PASSWORD: qwer1234
networks:
- mlac
ports:
- "8083:8080"
depends_on:
- mysql-db
mysql-db:
image: mysql:8.0.22
platform: linux/amd64
container_name: mysql-db
environment:
MYSQL_ROOT_PASSWORD: qwer1234
ports:
- "3306:3306"
volumes:
- ./data/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- mlac
networks:
mlac:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.20.0.0/24
gateway: 172.20.0.1