This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
selfoss/compose.postgres.yml

38 lines
705 B
YAML
Raw Normal View History

2020-09-23 14:57:11 +00:00
---
version: '3.8'
services:
db:
2020-09-23 14:57:11 +00:00
image: "postgres:9.6.5"
volumes:
- "db:/var/lib/postgresql/data"
2020-09-23 14:57:11 +00:00
networks:
- internal
environment:
POSTGRES_USER: selfoss
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
POSTGRES_DB: selfoss
secrets:
- db_password
selfoss:
networks:
- internal
depends_on:
- db
2020-09-23 14:57:11 +00:00
secrets:
- db_password
environment:
- SELFOSS_DB_HOST=db
2020-09-23 14:57:11 +00:00
- SELFOSS_DB_NAME=selfoss
- SELFOSS_DB_USERNAME=selfoss
- SELFOSS_DB_PASSWORD_FILE=/run/secrets/db_password
volumes:
db:
2020-09-23 14:57:11 +00:00
secrets:
db_password:
external: true
name: ${STACK_NAME}_db_password_${DB_PASSWORD_VERSION}