This commit is contained in:
Debian
2026-07-23 21:49:18 +00:00
commit 9b1ae78a1c
6 changed files with 167 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
FROM nextcloud:34.0.1-apache
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg && \
rm -rf /var/lib/apt/lists/*
+62
View File
@@ -0,0 +1,62 @@
services:
nextcloud-app:
build: .
container_name: nextcloud_app
restart: unless-stopped
volumes:
- ./nextcloud_data:/var/www/html
environment:
- POSTGRES_HOST=synapse-postgres-1 # Change to your Postgres IP/Hostname
- POSTGRES_DB=${DB_NAME} # Your Postgres DB name
- POSTGRES_USER=${DB_UNAME} # Your Postgres user
- POSTGRES_PASSWORD=${DB_PASS} # Your Postgres password
- REDIS_HOST=nextcloud-redis
- REDIS_HOST_PASSWORD=${REDIS_PASS}
- NEXTCLOUD_TEMP_DIRECTORY=/var/www/html/data/tmp
- OBJECTSTORE_S3_HOST=s3.eu-central-003.backblazeb2.com
- OBJECTSTORE_S3_REGION=eu-central-003
- OBJECTSTORE_S3_BUCKET=${BUCKET_NAME}
- OBJECTSTORE_S3_KEY=${BUCKET_AKEY}
- OBJECTSTORE_S3_SECRET=${BUCKET_SECRET}
- OBJECTSTORE_S3_PORT=443
- OBJECTSTORE_S3_SSL=true
- OBJECTSTORE_S3_USEPATHSTYLE=false
depends_on:
- nextcloud-redis
networks:
- postgre-general
- nextcloud-network
- reverse_proxy_default
nextcloud-redis:
image: redis:alpine # Essential for file locking, uses almost no RAM (~20MB)
container_name: nextcloud_redis
restart: unless-stopped
command: redis-server --requirepass ${REDIS_PASS}
networks:
- nextcloud-network
nextcloud-cron:
image: nextcloud:latest
container_name: nextcloud_cron
restart: unless-stopped
volumes:
- ./nextcloud_data:/var/www/html
entrypoint: /cron.sh
depends_on:
- nextcloud-app
networks:
- nextcloud-network
- postgre-general
networks:
nextcloud-network:
postgre-general:
external: true
reverse_proxy_default:
external: true