infra-oasis21/nextcloud/docker-compose.yml

101 lines
2.8 KiB
YAML
Raw Normal View History

2022-04-28 16:41:42 +02:00
version: '3.7'
volumes:
nextcloud-db:
name: docker_nextcloud-db
nextcloud:
name: docker_nextcloud
networks:
nextcloud:
proxy:
external: true
services:
nextcloud-app:
2022-05-05 11:17:28 +02:00
image: nextcloud:23.0
2022-04-28 16:41:42 +02:00
container_name: nextcloud-app
restart: unless-stopped
volumes:
- nextcloud:/var/www/html
2022-05-05 11:17:28 +02:00
#- ./config.php:/var/www/html/config/config.php
#- ./zz-php-custom.ini:/usr/local/etc/php/conf.d/zz-php-custom.ini
#- ./zz-php-fpm-custom.conf:/usr/local/etc/php-fpm.d/zz-php-custom.conf
2022-04-28 16:41:42 +02:00
environment:
- "TZ=Europe/Paris"
- REDIS_HOST=redis
env_file: ./secrets/librezo.secrets
depends_on:
- nextcloud-db
- redis
networks:
- nextcloud
- proxy
2022-05-05 11:17:28 +02:00
restart: unless-stopped
2022-04-28 16:41:42 +02:00
labels:
traefik.http.routers.nextcloud-web.entrypoints: websecure
2022-05-05 11:17:28 +02:00
traefik.http.routers.nextcloud-web.rule: Host(`cloud.oasis21.org`)
2022-04-28 16:41:42 +02:00
traefik.http.services.nextcloud-web.loadbalancer.server.port: 80
traefik.enable: true
# https://docs.nextcloud.com/server/16/admin_manual/configuration_server/reverse_proxy_configuration.html
traefik.http.routers.nextcloud-web.middlewares: nextcloud-web@docker
traefik.http.middlewares.nextcloud-web.redirectregex.permanent: true
traefik.http.middlewares.nextcloud-web.redirectregex.regex: ^/.well-known/(card|cal)dav
traefik.http.middlewares.nextcloud-web.redirectregex.replacement: /remote.php/dav/
restart: unless-stopped
redis:
image: redis
image: 'bitnami/redis:latest'
container_name: redis
environment:
- "TZ=Europe/Paris"
env_file: ./secrets/librezo.secrets
2022-04-28 16:41:42 +02:00
networks:
- nextcloud
nextcloud-db:
image: postgres:11
container_name: nextcloud-db
volumes:
- nextcloud-db:/var/lib/postgresql/data
networks:
- nextcloud
env_file: ./secrets/librezo.secrets
environment:
- "TZ=Europe/Paris"
restart: unless-stopped
collabora:
image: libreoffice/online:master
container_name: collabora
2022-05-05 11:17:28 +02:00
volumes:
- ./loolwsd.xml:/etc/loolwsd/loolwsd.xml
#- ./zz-php-fpm-custom.conf:/usr/local/etc/php-fpm.d/zz-php-custom.conf
2022-04-28 16:41:42 +02:00
# ports:
# - 9980:9980
# expose:
# - "9980"
environment:
- "TZ=Europe/Paris"
2022-05-05 11:17:28 +02:00
- domain=cloud\.calad\.re
# - username=${COLLABORA_USER}
# - password=${COLLABORA_PASSWORD}
- serveur_name=code\.calad\.re
2022-04-28 16:41:42 +02:00
- "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
networks:
- nextcloud
- proxy
2022-05-05 11:17:28 +02:00
env_file: ./secrets/librezo.secrets
2022-04-28 16:41:42 +02:00
cap_add:
- MKNOD
restart:
unless-stopped
labels:
traefik.http.routers.collabora.entrypoints: websecure
2022-05-05 11:17:28 +02:00
traefik.http.routers.collabora.rule: Host(`code.oasis21.org`)
2022-04-28 16:41:42 +02:00
traefik.http.services.collabora.loadbalancer.server.port: 9980
traefik.enable: true