-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.11 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
version: "3"
services:
openapi-ui:
image: swaggerapi/swagger-ui:v4.5.0
ports:
- "8081:8080"
environment:
SWAGGER_JSON: /openapi/openapi.yaml
volumes:
- ./openapi:/openapi
db:
platform: linux/x86_64
image: mysql:8.0.28
volumes:
- db-data:/var/lib/mysql
- ./mysql/my.cnf:/etc/mysql/conf.d/my.cnf
- ./mysql/initdb:/docker-entrypoint-initdb.d
command: --authentication_policy=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: ryouomoi-checker
MYSQL_PASSWORD: password
MYSQL_DATABASE: ryouomoi-checker-db
ports:
- "3306:3306"
server:
build:
context: .
dockerfile: Dockerfile
container_name: ryouomoi-checker-server
env_file:
- .env.compose
ports:
- "8080:8080"
depends_on:
- db
chat-server:
build:
context: ./chat
dockerfile: Dockerfile
container_name: ryouomoi-checker-chat-server
env_file:
- .env.compose
ports:
- "3001:3001"
depends_on:
- db
volumes:
db-data:
driver: local