Fix default port mapping and indentation
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
@@ -3,27 +3,28 @@ services:
|
||||
backend:
|
||||
build: backend
|
||||
secrets:
|
||||
- db-password
|
||||
- db-password
|
||||
depends_on:
|
||||
- db
|
||||
- db
|
||||
db:
|
||||
environment:
|
||||
MYSQL_DATABASE: example
|
||||
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db-password
|
||||
image: mysql:5.7
|
||||
image: mysql:8.0.19
|
||||
command: '--default-authentication-plugin=mysql_native_password'
|
||||
restart: always
|
||||
secrets:
|
||||
- db-password
|
||||
- db-password
|
||||
volumes:
|
||||
- db-data:/var/lib/mysql
|
||||
- db-data:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_DATABASE=example
|
||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password
|
||||
proxy:
|
||||
build: proxy
|
||||
ports:
|
||||
- 80:80
|
||||
- 80:80
|
||||
depends_on:
|
||||
- backend
|
||||
- backend
|
||||
volumes:
|
||||
db-data: {}
|
||||
db-data:
|
||||
secrets:
|
||||
db-password:
|
||||
file: db/password.txt
|
||||
|
Reference in New Issue
Block a user