This commit is contained in:
3wc 2022-12-20 19:44:57 -08:00
parent da9163f9ec
commit 5a6ee8d44c
2 changed files with 31 additions and 1 deletions

View File

@ -6,3 +6,5 @@ DOMAIN=drutopia.example.com
#EXTRA_DOMAINS=', `www.drutopia.example.com`'
LETS_ENCRYPT_ENV=production
SECRET_DB_PASSWORD_VERSION=v1

View File

@ -3,9 +3,14 @@ version: "3.8"
services:
app:
image: nginx:1.20.0
image: git.coopcloud.tech/coop-cloud-chaos-patchs/drutopia:dev-master
networks:
- proxy
- internal
secrets:
- db_password
volumes:
- drutopia_sites:/opt/drupal/web/sites/
deploy:
restart_policy:
condition: on-failure
@ -27,6 +32,29 @@ services:
retries: 10
start_period: 1m
db:
image: postgres:12
networks:
- internal
volumes:
- postgres_data:/var/lib/postgresql/data
secrets:
- db_password
environment:
POSTGRES_USER: drupal
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
POSTGRES_DB: drupal
networks:
proxy:
external: true
internal:
volumes:
drutopia_sites:
postgres_data:
secrets:
db_password:
external: true
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}