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.
2020-09-23 14:57:11 +00:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
2021-04-04 21:01:54 +00:00
|
|
|
app:
|
2020-09-23 14:57:11 +00:00
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
depends_on:
|
2020-10-05 23:38:48 +00:00
|
|
|
- db
|
2020-09-23 14:57:11 +00:00
|
|
|
secrets:
|
|
|
|
- db_password
|
|
|
|
environment:
|
2020-10-05 23:38:48 +00:00
|
|
|
- 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
|
2020-10-05 23:38:48 +00:00
|
|
|
db:
|
2020-10-24 18:58:30 +00:00
|
|
|
image: "postgres:9.6.5"
|
|
|
|
volumes:
|
|
|
|
- "postgres:/var/lib/postgresql/data"
|
|
|
|
networks:
|
|
|
|
- internal
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: selfoss
|
|
|
|
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
|
|
|
POSTGRES_DB: selfoss
|
|
|
|
secrets:
|
|
|
|
- db_password
|
2021-04-04 21:01:54 +00:00
|
|
|
deploy:
|
|
|
|
labels:
|
|
|
|
- coop-cloud.${STACK_NAME}.db.version=9.6.5-2f2b1f4d
|
2020-10-24 18:58:30 +00:00
|
|
|
volumes:
|
|
|
|
postgres:
|
2020-09-23 14:57:11 +00:00
|
|
|
secrets:
|
2021-04-04 21:01:54 +00:00
|
|
|
db_password:
|
|
|
|
external: true
|
2020-09-23 14:57:11 +00:00
|
|
|
name: ${STACK_NAME}_db_password_${DB_PASSWORD_VERSION}
|