infra-oasis21/nextcloud/docker-compose.yml

127 lines
3.7 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-09-14 01:04:20 +02:00
onlyoffice-data:
name: docker_onlyoffice-data
# onlyoffice-log:
# name: docker_onlyoffice-log
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-09-13 19:50:02 +02:00
build: .
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 :
2022-09-14 01:04:20 +02:00
office.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
2022-09-13 19:50:02 +02:00
traefik.http.routers.nextcloud-web.middlewares: nextcloud-web@docker, allowFrameAndCORS@file
2022-04-28 16:41:42 +02:00
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-13 19:50:02 +02:00
image: 'bitnami/redis:7.0.4'
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:
2022-09-13 19:50:02 +02:00
image: postgres:11.17-bullseye
2022-04-28 16:41:42 +02:00
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
2022-09-14 01:04:20 +02:00
#collabora:
# image: collabora/code:22.05.3.1.1
# container_name: collabora
# extra_hosts :
# cloud.oasis21.org : 172.16.7.10
# environment:
# - "TZ=Europe/Paris"
# - aliasgroup1=cloud.oasis21.org
# - DONT_GEN_SSL_CERT=1
# - serveur_name=code.oasis21.org
# - "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
# networks:
# - nextcloud
# - proxy
# env_file: ./secrets/librezo.secrets
# cap_add:
# - MKNOD
# restart:
# unless-stopped
# labels:
# traefik.http.routers.collabora.entrypoints: websecure
# traefik.http.routers.collabora.rule: Host(`code.oasis21.org`)
# traefik.http.services.collabora.loadbalancer.server.port: 9980
# traefik.http.routers.collabora.middlewares: allowFrameAndCORS@file
# traefik.enable: true
onlyoffice:
container_name: onlyoffice
image: onlyoffice/documentserver:7.1.1.23
restart: unless-stopped
2022-07-12 12:20:42 +02:00
extra_hosts :
2022-09-14 01:04:20 +02:00
cloud.oasis21.org : 172.16.7.11
2022-04-28 16:41:42 +02:00
environment:
2022-09-14 01:04:20 +02:00
- JWT_ENABLED=false
volumes:
- onlyoffice-data:/var/www/onlyoffice/Data
#- onlyoffice-log:/var/log/onlyoffice
2022-04-28 16:41:42 +02:00
labels:
2022-09-14 01:04:20 +02:00
traefik.http.routers.onlyoffice.entrypoints: websecure
traefik.http.routers.onlyoffice.rule: Host(`office.oasis21.org`)
traefik.http.services.onlyoffice.loadbalancer.server.port: 80
2022-04-28 16:41:42 +02:00
traefik.enable: true
2022-09-14 01:04:20 +02:00
traefik.http.routers.onlyoffice.middlewares: allowFrameAndCORS@file, onlyoffice-sslheaders
traefik.http.middlewares.onlyoffice-sslheaders.headers.customrequestheaders.X-Forwarded-Proto: "https"
networks:
- nextcloud
- proxy