infra-oasis21/nextcloud/docker-compose.yml

98 lines
2.6 KiB
YAML
Raw Normal View History

2022-04-28 16:41:42 +02:00
version: '3.7'
volumes:
nextcloud-db:
2022-07-12 12:20:42 +02:00
name: docker_nextcloud-db-23
nextcloud-data:
2022-04-28 16:41:42 +02:00
name: docker_nextcloud
2022-07-12 12:20:42 +02:00
nextcloud:
name: docker_nextcloud-conf
2022-04-28 16:41:42 +02:00
networks:
nextcloud:
proxy:
external: true
services:
nextcloud-app:
2022-09-11 13:28:53 +02:00
image: nextcloud-cron:23.0.9
2022-04-28 16:41:42 +02:00
container_name: nextcloud-app
restart: unless-stopped
2022-07-12 12:20:42 +02:00
extra_hosts :
code.oasis21.org : 172.16.7.10
2022-04-28 16:41:42 +02:00
volumes:
- nextcloud:/var/www/html
2022-07-12 12:20:42 +02:00
- nextcloud-data:/var/www/html/data
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
2022-07-12 12:20:42 +02:00
traefik.http.middlewares.nextcloud-web.redirectregex.regex: "https://(.*)/.well-known/(card|cal)dav"
traefik.http.middlewares.nextcloud-web.redirectregex.replacement: "https://$${1}/remote.php/dav/"
2022-04-28 16:41:42 +02:00
restart: unless-stopped
redis:
image: redis
2022-09-11 13:28:53 +02:00
image: 'bitnami/redis:7.0.2'
2022-04-28 16:41:42 +02:00
container_name: redis
environment:
- "TZ=Europe/Paris"
2022-05-06 09:48:47 +02:00
- ALLOW_EMPTY_PASSWORD=yes
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:
2022-07-12 12:20:42 +02:00
image: collabora/code:22.05.3.1.1
2022-04-28 16:41:42 +02:00
container_name: collabora
2022-07-12 12:20:42 +02:00
extra_hosts :
cloud.oasis21.org : 172.16.7.10
2022-04-28 16:41:42 +02:00
environment:
- "TZ=Europe/Paris"
2022-07-12 12:20:42 +02:00
- aliasgroup1=cloud.oasis21.org
- DONT_GEN_SSL_CERT=1
- serveur_name=code.oasis21.org
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