-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (45 loc) · 969 Bytes
/
docker-compose.yaml
File metadata and controls
49 lines (45 loc) · 969 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
db_1:
image: mysql:latest
ports:
- 3309:3306
secrets:
- db_root_password
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password
volumes:
- db_data:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
- ./utfconf.cnf:/etc/mysql/conf.d/custom.cnf
networks:
- mysql_network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
node:
build:
context: .
dockerfile: Dockerfile
ports:
- 8000:3000
networks:
- mysql_network
volumes:
- ./src:/app/src
env_file: .env
secrets:
- db_database_password
depends_on:
db_1:
condition: service_healthy
networks:
mysql_network:
secrets:
db_root_password:
file: ./root_password.txt
db_database_password:
file: ./database_password.txt
volumes:
db_data: