2020-03-05 16:28:07 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
backend:
|
|
|
|
build: backend
|
2020-03-17 20:55:32 +00:00
|
|
|
secrets:
|
|
|
|
- db-password
|
|
|
|
ports:
|
|
|
|
- 5000:5000
|
2020-03-05 16:28:07 +00:00
|
|
|
db:
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: example
|
|
|
|
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db-password
|
2020-03-17 20:55:32 +00:00
|
|
|
image: mysql:8.0.19
|
2020-03-05 16:28:07 +00:00
|
|
|
restart: always
|
|
|
|
secrets:
|
|
|
|
- db-password
|
|
|
|
volumes:
|
|
|
|
- db-data:/var/lib/mysql
|
|
|
|
proxy:
|
|
|
|
build: proxy
|
|
|
|
ports:
|
2020-03-17 20:55:32 +00:00
|
|
|
- 8080:80
|
2020-03-05 16:28:07 +00:00
|
|
|
volumes:
|
|
|
|
db-data: {}
|
|
|
|
secrets:
|
|
|
|
db-password:
|
|
|
|
file: db/password.txt
|