1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 07:18:06 +02:00

Fix default port mapping and indentation

Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
Anca Iordache 2020-03-24 00:36:46 +01:00
parent dc1bb13dce
commit 77c6920a83
20 changed files with 111 additions and 108 deletions

View file

@ -3,27 +3,28 @@ services:
backend:
build: backend
secrets:
- db-password
- db-password
depends_on:
- db
- db
db:
environment:
POSTGRES_DB: example
POSTGRES_PASSWORD_FILE: /run/secrets/db-password
image: postgres
restart: always
secrets:
- db-password
- db-password
volumes:
- db-data:/var/lib/postgresql/data
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=example
- POSTGRES_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