feat(Nextcloud): Split redis & postgres configuration

This commit is contained in:
2023-10-03 22:21:58 +02:00
parent 6441551318
commit a26e291396
7 changed files with 42 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
---
version: "3.8"
services:
nextcloud-fpm:
depends_on:
- postgres
environment:
&postgres-configuration
POSTGRES_HOST: ${POSTGRES_CONTAINER_NAME:-postgres} # Default name is same as ../postgres/docker-compose.yml:8
POSTGRES_USER: ${POSTGRES_USER:?err}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?err}
POSTGRES_DB: ${POSTGRES_DB:?err}
nextcloud-cron:
environment:
<<: *postgres-configuration