awesome-compose/spring-postgres/docker-compose.yaml
Michael Irwin 19dab8f353
Fix typo in network name for spring-postgres example
Signed-off-by: Michael Irwin <mikesir87@gmail.com>
2020-03-20 13:19:08 -04:00

30 lines
533 B
YAML

version: "3.7"
services:
backend:
build: backend
ports:
- 80:8080
environment:
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
volumes:
- db-data:/var/lib/postgresql/data
networks:
- spring-postgres
volumes:
db-data: {}
secrets:
db-password:
file: db/password.txt
networks:
spring-postgres: {}