2020-03-05 18:19:41 +00:00
|
|
|
services:
|
|
|
|
backend:
|
|
|
|
build: backend
|
|
|
|
ports:
|
2020-03-23 23:36:46 +00:00
|
|
|
- 8080:8080
|
2020-03-05 18:19:41 +00:00
|
|
|
secrets:
|
2020-03-23 23:36:46 +00:00
|
|
|
- db-password
|
2020-03-05 18:19:41 +00:00
|
|
|
db:
|
2020-03-17 14:30:49 +00:00
|
|
|
image: mysql:8.0.19
|
2020-03-05 18:19:41 +00:00
|
|
|
restart: always
|
|
|
|
secrets:
|
2020-03-23 23:36:46 +00:00
|
|
|
- db-password
|
2020-03-05 18:19:41 +00:00
|
|
|
volumes:
|
2020-03-23 23:36:46 +00:00
|
|
|
- db-data:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=example
|
|
|
|
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password
|
2021-04-30 20:29:16 +00:00
|
|
|
expose:
|
|
|
|
- 3306
|
|
|
|
- 33060
|
2020-03-05 18:19:41 +00:00
|
|
|
volumes:
|
2020-03-23 23:36:46 +00:00
|
|
|
db-data:
|
2020-03-05 18:19:41 +00:00
|
|
|
secrets:
|
|
|
|
db-password:
|
|
|
|
file: db/password.txt
|