2019-11-05 20:58:51 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
2019-11-10 21:50:43 +01:00
|
|
|
# https://hub.docker.com/_/nextcloud/
|
2022-12-11 23:24:48 +01:00
|
|
|
# https://github.com/nextcloud/docker
|
|
|
|
# https://docs.nextcloud.com/server/stable/admin_manual/release_schedule.html
|
2023-09-13 22:33:47 +02:00
|
|
|
# disable cert verification for local smtp connection:
|
|
|
|
# https://docs.nextcloud.com/server/26/admin_manual/configuration_server/email_configuration.html#tlspeerverification
|
|
|
|
# https://blog.cubieserver.de/2022/complete-guide-to-nextcloud-oidc-authentication-with-authentik/
|
2019-11-10 21:50:43 +01:00
|
|
|
|
2022-12-10 18:16:50 +01:00
|
|
|
# create admin account during setup
|
|
|
|
|
2024-03-17 19:16:07 +01:00
|
|
|
# STUN/TURN server for nextcloud talk:
|
|
|
|
# https://nextcloud-talk.readthedocs.io/en/latest/TURN/
|
|
|
|
# https://nextcloud-talk.readthedocs.io/en/latest/eturnal/
|
|
|
|
# https://eturnal.net/doc/container-quick-test.html
|
|
|
|
# https://github.com/processone/eturnal/tree/master/examples/docker-compose
|
|
|
|
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
nextcloud:
|
|
|
|
|
|
|
|
services:
|
|
|
|
nextcloud:
|
2024-09-26 20:44:18 +02:00
|
|
|
image: nextcloud:30
|
2019-11-05 20:58:51 +01:00
|
|
|
container_name: nextcloud
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-12-05 22:37:25 +01:00
|
|
|
domainname: ${BASE_DOMAIN}
|
2019-11-05 20:58:51 +01:00
|
|
|
environment:
|
2023-06-27 23:38:10 +02:00
|
|
|
- APACHE_DISABLE_REWRITE_IP=1
|
|
|
|
- TRUSTED_PROXIES=10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
|
|
|
|
- OVERWRITEPROTOCOL=https
|
|
|
|
|
2019-11-05 20:58:51 +01:00
|
|
|
- POSTGRES_HOST=pg-nextcloud
|
|
|
|
- POSTGRES_DB=nextcloud
|
2019-12-07 23:40:51 +01:00
|
|
|
- POSTGRES_USER=nextcloud
|
2019-11-10 21:50:43 +01:00
|
|
|
- POSTGRES_PASSWORD=${NEXTCLOUD_PG_PWD:-password}
|
2023-09-18 14:29:09 +02:00
|
|
|
|
|
|
|
- REDIS_HOST=redis-nextcloud
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/html:/var/www/html # Main folder, needed for updating
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/apps:/var/www/html/custom_apps # installed / modified apps
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/config:/var/www/html/config # local configuration
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/data:/var/www/html/data # the actual data of your Nextcloud
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/themes:/var/www/html/themes # theming/branding
|
2019-11-05 20:58:51 +01:00
|
|
|
depends_on:
|
|
|
|
- pg-nextcloud
|
2023-09-18 14:29:09 +02:00
|
|
|
- redis-nextcloud
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- mail
|
|
|
|
- nextcloud
|
|
|
|
|
2023-09-13 22:33:47 +02:00
|
|
|
nextcloud-cron:
|
2024-09-26 20:44:18 +02:00
|
|
|
image: nextcloud:30
|
2023-09-13 22:33:47 +02:00
|
|
|
container_name: nextcloud-cron
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
entrypoint: /cron.sh
|
|
|
|
volumes:
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/html:/var/www/html # Main folder, needed for updating
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/apps:/var/www/html/custom_apps # installed / modified apps
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/config:/var/www/html/config # local configuration
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/data:/var/www/html/data # the actual data of your Nextcloud
|
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/themes:/var/www/html/themes # theming/branding
|
|
|
|
depends_on:
|
|
|
|
- pg-nextcloud
|
2023-09-18 14:29:09 +02:00
|
|
|
- redis-nextcloud
|
2023-09-13 22:33:47 +02:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
|
2019-11-05 20:58:51 +01:00
|
|
|
pg-nextcloud:
|
2024-01-03 18:56:26 +01:00
|
|
|
image: postgres:16-alpine
|
2019-11-05 20:58:51 +01:00
|
|
|
container_name: pg-nextcloud
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-11-05 20:58:51 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=nextcloud
|
2019-12-07 23:40:51 +01:00
|
|
|
- POSTGRES_USER=nextcloud
|
2019-11-10 21:50:43 +01:00
|
|
|
- POSTGRES_PASSWORD=${NEXTCLOUD_PG_PWD:-password}
|
2019-11-05 20:58:51 +01:00
|
|
|
volumes:
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/nextcloud/psql:/var/lib/postgresql/data
|
2019-11-05 20:58:51 +01:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
2023-09-18 14:29:09 +02:00
|
|
|
|
|
|
|
redis-nextcloud:
|
|
|
|
image: redis:7-alpine
|
|
|
|
container_name: redis-nextcloud
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
2024-03-17 19:16:07 +01:00
|
|
|
|
|
|
|
eturnal:
|
|
|
|
image: ghcr.io/processone/eturnal:1.12
|
|
|
|
container_name: eturnal
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
domainname: ${BASE_DOMAIN}
|
|
|
|
user: 9000:9000
|
|
|
|
read_only: true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
environment:
|
|
|
|
- ETURNAL_SECRET=${ETURNAL_SECRET}
|
|
|
|
- ETURNAL_RELAY_MIN_PORT=50000
|
|
|
|
- ETURNAL_RELAY_MAX_PORT=50050
|
2024-10-29 20:33:03 +01:00
|
|
|
- STUN_SERVICE=false
|
2024-03-17 19:16:07 +01:00
|
|
|
ports:
|
|
|
|
- 3478:3478 # STUN/TURN non-TLS
|
|
|
|
- 3478:3478/udp # STUN/TURN non-TLS
|
|
|
|
- 50000-50050:50000-50050/udp
|