-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
142 lines (132 loc) · 3.5 KB
/
docker-compose.yaml
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# docker-compose.yaml for release branch
version: "3.9"
services:
webservice:
container_name: sejong-reservation-webservice
image: sejong-reservation-webservice
build:
context: .
dockerfile: ./WebService/Dockerfile
restart: always
ports:
- "80:80"
reservationservice:
container_name: sejong-reservation-reservationservice
image: sejong-reservation-reservationservice
build:
context: .
dockerfile: ./ReservationService/Dockerfile
restart: always
environment:
TZ: Asia/Seoul
DB_URL: dbservice
DB_NAME: sejong
DB_PORT: 3306
DB_USERNAME: development
DB_PASSWORD: 1234
ports:
- "5000:5000"
userservice:
container_name: sejong-reservation-userservice
image: sejong-reservation-userservice
build:
context: .
dockerfile: ./UserService/Dockerfile
restart: always
environment:
TZ: Asia/Seoul
DB_URL: dbservice
DB_NAME: sejong
DB_PORT: 3306
DB_USERNAME: development
DB_PASSWORD: 1234
ports:
- "5001:5000"
managementservice:
container_name: sejong-reservation-managementservice
image: sejong-reservation-managementservice
build:
context: .
dockerfile: ./ManagementService/Dockerfile
restart: always
environment:
TZ: Asia/Seoul
DB_URL: dbservice
DB_NAME: sejong
DB_PORT: 3306
DB_USERNAME: development
DB_PASSWORD: 1234
networks:
default:
aliases:
- adminservice
volumes:
- ./ManagementService/thumbnails:/ManagementAPI/static:rw
ports:
- "5002:5000"
alertservice:
container_name: sejong-reservation-alertservice
image: sejong-reservation-alertservice
build:
context: .
dockerfile: ./AlertService/Dockerfile
restart: always
environment:
TZ: Asia/Seoul
ports:
- "5003:5000"
dbmanager:
image: adminer:latest
container_name: sejong-reservation-dbmanager
restart: always
environment:
TZ: Asia/Seoul
ports:
- "9999:8080"
portainer:
image: portainer/portainer-ce:latest
container_name: sejong-reservation-portainer
ports:
- "9443:9443"
volumes:
- /home/dks/sejong-reservation/portainer-data:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped
dbservice:
image: mariadb:11.0-rc-jammy
container_name: sejong-reservation-dbservice
restart: always
env_file:
./DBService/maria-env
environment:
TZ: Asia/Seoul
volumes:
- ./DBService/maria-init.sql:/docker-entrypoint-initdb.d/maria-init.sql
ports:
- "3306:3306"
networks:
default:
aliases:
- dbservice
gatewayservice:
image: nginx:latest
container_name: sejong-reservation-gatewayservice
restart: always
volumes:
- ./Common/nginx_reverse_proxy.conf:/etc/nginx/conf.d/default.conf
- ./Common/nginx_proxy_params.conf:/etc/nginx/proxy_params
# - /home/xx/Desktop/cust/xx/Docker/nginx/cert/star_xx_com.pem:/etc/nginx/cert/star_xx_com.pem
# - /home/xx/Desktop/cust/xx/Docker/nginx/cert/star_xx_com.key:/etc/nginx/cert/star_xx_com.key
# - /home/xx/Desktop/cust/xx/Docker/nginx/cert/star_xx_com.crt:/etc/nginx/cert/star_xx_com.crt
environment:
TZ: Asia/Seoul
ports:
- "8080:8080"
depends_on:
- reservationservice
- userservice
- managementservice
- alertservice
- dbservice
volumes:
portainer-data: