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.
32 lines
518 B
YAML
32 lines
518 B
YAML
5 years ago
|
services:
|
||
|
backend:
|
||
|
build: backend
|
||
|
secrets:
|
||
5 years ago
|
- db-password
|
||
5 years ago
|
depends_on:
|
||
5 years ago
|
- db
|
||
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
|
||
|
environment:
|
||
|
- POSTGRES_DB=example
|
||
|
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
|
||
4 years ago
|
expose:
|
||
|
- 5432
|
||
5 years ago
|
|
||
5 years ago
|
proxy:
|
||
|
build: proxy
|
||
|
ports:
|
||
5 years ago
|
- 80:80
|
||
5 years ago
|
depends_on:
|
||
5 years ago
|
- backend
|
||
5 years ago
|
volumes:
|
||
5 years ago
|
db-data:
|
||
5 years ago
|
secrets:
|
||
|
db-password:
|
||
|
file: db/password.txt
|