You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
548 B
YAML
31 lines
548 B
YAML
5 years ago
|
services:
|
||
|
backend:
|
||
|
build: backend
|
||
|
ports:
|
||
5 years ago
|
- 8080:8080
|
||
5 years ago
|
environment:
|
||
5 years ago
|
- POSTGRES_DB=example
|
||
5 years ago
|
networks:
|
||
5 years ago
|
- spring-postgres
|
||
5 years ago
|
db:
|
||
|
image: postgres
|
||
|
restart: always
|
||
|
secrets:
|
||
5 years ago
|
- db-password
|
||
5 years ago
|
volumes:
|
||
5 years ago
|
- db-data:/var/lib/postgresql/data
|
||
5 years ago
|
networks:
|
||
5 years ago
|
- spring-postgres
|
||
5 years ago
|
environment:
|
||
|
- POSTGRES_DB=example
|
||
|
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
|
||
4 years ago
|
expose:
|
||
|
- 5432
|
||
5 years ago
|
volumes:
|
||
5 years ago
|
db-data:
|
||
5 years ago
|
secrets:
|
||
|
db-password:
|
||
|
file: db/password.txt
|
||
5 years ago
|
networks:
|
||
5 years ago
|
spring-postgres:
|