mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 02:38:07 +02:00
Fix default port mapping and indentation
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
dc1bb13dce
commit
77c6920a83
20 changed files with 111 additions and 108 deletions
|
@ -3,27 +3,27 @@ services:
|
|||
backend:
|
||||
build: backend
|
||||
ports:
|
||||
- 80:8080
|
||||
- 8080:8080
|
||||
environment:
|
||||
POSTGRES_DB: example
|
||||
- POSTGRES_DB=example
|
||||
networks:
|
||||
- spring-postgres
|
||||
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
|
||||
networks:
|
||||
- spring-postgres
|
||||
environment:
|
||||
- POSTGRES_DB=example
|
||||
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
|
||||
volumes:
|
||||
db-data: {}
|
||||
db-data:
|
||||
secrets:
|
||||
db-password:
|
||||
file: db/password.txt
|
||||
networks:
|
||||
spring-postgres: {}
|
||||
spring-postgres:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue