Files
kpoe21cloud/dc/nextcloud/docker-compose.yml
Mathias Teier ff1c1f8f74 init
2025-06-24 19:11:38 +02:00

63 lines
1.6 KiB
YAML

services:
redis:
image: redis:6.2.7
restart: unless-stopped
volumes:
- /var/redis:/data
networks:
- "nextcloud_net"
nextcloud:
build: ./nextcloud-fpm
restart: unless-stopped
environment:
POSTGRES_DB: nextcloud
POSTGRES_USER: nextcloud
POSTGRES_HOST: postgres
POSTGRES_PASSWORD: r5GJKfgNv6Jf1K7OjuEE1JtMTvgLbrG0
TRUSTED_PROXIES: "172.17.0.0/16 172.18.0.0/16 192.168.1.0/24"
APACHE_DISABLE_REWRITE_IP: "1"
OVERWRITEHOST: "cloud.kpoe21.at"
OVERWRITEPROTOCOL: "https"
OVERWRITEWEBROOT: "/"
REDIS_HOST: redis
networks:
- "postgres_net"
- "nextcloud_net"
volumes:
- /var/nextcloud:/var/www/html
- /dc/nextcloud/www.conf:/usr/local/etc/php-fpm.d/www2.conf
- /dc/nextcloud/custom-php.ini:/usr/local/etc/php/conf.d/custom-php.ini
web:
image: nginx:latest
restart: unless-stopped
ports:
- 8080:80
networks:
- "nextcloud_net"
volumes:
- ./mime.types:/etc/nginx/mime.types
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- /var/nextcloud:/var/www/html
collabora:
image: collabora/code:latest
restart: unless-stopped
ports:
- 3001:9980
privileged: true
environment:
server_name: cloud.kpoe21.at
extra_params: --o:ssl.enable=false --o:ssl.termination=true
username: admin
password: Pn7cmIsZNnf7DUC73PxRhC9HkA6ZzivD
networks:
- nextcloud_net
volumes:
- /var/collabora/coolwsd.xml:/etc/coolwsd/coolwsd.xml
networks:
nextcloud_net:
name: "nextcloud_net"
driver: bridge
postgres_net:
name: "postgres_net"
external: true