-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (44 loc) · 807 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (44 loc) · 807 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
version: "3.7"
services:
db:
environment:
MYSQL_DATABASE: example
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db-password
image: mariadb:10.6.4-focal
restart: always
secrets:
- db-password
volumes:
- db-data:/var/lib/mysql
networks:
- spring-mysql
backend:
build:
context: backend
target: development
environment:
MYSQL_HOST: db
networks:
- react-spring
- spring-mysql
depends_on:
- db
restart: on-failure:5
frontend:
build:
context: frontend
target: development
ports:
- 3000:3000
networks:
- react-spring
depends_on:
- backend
volumes:
db-data: {}
secrets:
db-password:
file: db/password.txt
networks:
react-spring: {}
spring-mysql: {}