-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
31 lines (28 loc) · 890 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
31 lines (28 loc) · 890 Bytes
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
version: '3.7'
services:
cluster_management_api:
build:
context: .
dockerfile: ./docker/backend/Dockerfile
ports:
- 3000:3000
volumes:
- ./:/app
depends_on:
- cluster_management_db
command: sh -c "yarn && yarn start:dev"
cluster_management_db:
image: mysql:8.0.25
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=cluster_node_management
- MYSQL_USER=admin
- MYSQL_PASSWORD=admin
volumes:
- cluster_management_db_volume:/var/lib/mysql
- ./docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d:rw
- ./docker/mysql/etc/conf.d/my.cnf:/etc/mysql/conf.d/custom.cnf
volumes:
cluster_management_db_volume: