2023-09-05, 06:05 PM
Here's my actual compose file. Keep in mind it's extended out to a main compose file, where "depends_on" must live, so those are properly implemented for the main app and cron containers.
Code:
version: '3'
services:
nxcdb:
image: postgres:alpine
container_name: nxcdb
restart: unless-stopped
volumes:
- "${USERDIR}/docker/nextcloud/db:/var/lib/postgresql/data:Z"
env_file:
- .env
nxcr:
image: redis:alpine
container_name: nxcr
restart: unless-stopped
env_file:
- .env
nextcloud:
image: nextcloud:production-apache
container_name: nextcloud
restart: unless-stopped
volumes:
- "${USERDIR}/docker/nextcloud/main:/var/www/html:z"
- "${USERDIR}/docker/nextcloud/apps:/var/www/html/custom_apps"
- "${USERDIR}/docker/nextcloud/config:/var/www/html/config"
- "${BXUP}/critical/nextcloud:/var/www/data"
- "${USERDIR}/docker/nextcloud/themes:/var/www/html/themes"
ports:
- "${SERVER_IP}:8880:80"
#- 4443:443
environment:
POSTGRES_HOST: nxcdb
REDIS_HOST: nxcr
NEXTCLOUD_TRUSTED_DOMAINS: [my.domain] [local_ip]
env_file:
- .env
ncron:
image: nextcloud:production-apache
container_name: ncron
restart: unless-stopped
volumes:
- "${USERDIR}/docker/nextcloud/main:/var/www/html:z"
- "${USERDIR}/docker/nextcloud/apps:/var/www/html/custom_apps"
- "${USERDIR}/docker/nextcloud/config:/var/www/html/config"
- "${BXUP}/critical/nextcloud:/var/www/data"
- "${USERDIR}/docker/nextcloud/themes:/var/www/html/themes"
entrypoint: /cron.sh
Jellyfin 10.10.0 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage