2021-05-09 22:07:17 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
services:
|
|
|
|
documentserver:
|
2024-09-08 13:13:36 +02:00
|
|
|
image: onlyoffice/documentserver:8.1.3.2
|
2021-05-09 22:07:17 +02:00
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
restart: unless-stopped
|
2021-07-21 17:58:15 +02:00
|
|
|
env_file: secrets/oo.secrets
|
|
|
|
environment:
|
|
|
|
- JWT_ENABLED=true
|
2021-05-09 22:07:17 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.documentserver.entrypoints=websecure"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.routers.documentserver.rule=Host(`${OOCN}`)"
|
2021-05-09 22:07:17 +02:00
|
|
|
- "traefik.http.middlewares.ds-header.headers.customRequestHeaders.X-Forwarded-Proto=https"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.documentserver.middlewares=ds-header,allowFrameAndCORS@file"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:6.2.1
|
|
|
|
command: ["sh", "-c", "redis-server --requirepass $${REDIS_HOST_PASSWORD}"]
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file: secrets/redis.secrets
|
|
|
|
volumes:
|
|
|
|
- ${DATA_PATH}/redis:/var/lib/redis
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb:10.5.4
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ${DATA_PATH}/my.cnf:/etc/mysql/my.cnf:ro
|
|
|
|
- ${DATA_PATH}/db:/var/lib/mysql
|
2021-05-24 11:48:07 +02:00
|
|
|
env_file: secrets/db.secrets
|
2021-11-10 01:29:40 +01:00
|
|
|
labels:
|
|
|
|
- "co.elastic.logs/module=mysql"
|
2021-05-09 22:07:17 +02:00
|
|
|
|
|
|
|
app:
|
2024-09-08 13:13:36 +02:00
|
|
|
image: nextcloud:28.0.9
|
2021-05-09 22:07:17 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- default
|
|
|
|
expose:
|
|
|
|
- "80"
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
volumes:
|
2024-02-08 10:01:47 +01:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2021-05-09 22:07:17 +02:00
|
|
|
- ${DATA_PATH}/app/html:/var/www/html
|
2023-04-25 16:44:03 +02:00
|
|
|
- ${DATA_PATH}/app/skeleton:/var/www/gnous-skeleton:ro
|
2021-05-09 22:07:17 +02:00
|
|
|
restart: unless-stopped
|
2021-05-24 11:48:07 +02:00
|
|
|
env_file: secrets/app.secrets
|
2021-05-09 22:07:17 +02:00
|
|
|
environment:
|
|
|
|
- APACHE_DISABLE_REWRITE_IP=1
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.docker.network=proxy"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.nc.entrypoints=websecure"
|
2023-02-01 18:43:13 +01:00
|
|
|
- "traefik.http.routers.nc.rule=Host(`${NCCN}`,`${SAN1}`)"
|
2021-05-09 22:07:17 +02:00
|
|
|
- "traefik.http.middlewares.nc-redirectregex.redirectregex.regex=https://(.*)/.well-known/(card|cal)dav"
|
|
|
|
- "traefik.http.middlewares.nc-redirectregex.redirectregex.replacement=https://$${1}/remote.php/dav/"
|
|
|
|
- "traefik.http.middlewares.nc-redirectregex.redirectregex.permanent=true"
|
2023-02-06 12:32:05 +01:00
|
|
|
- "traefik.http.routers.nc.middlewares=nc-redirectregex,nc-sts"
|
|
|
|
- "traefik.http.middlewares.nc-sts.headers.stsSeconds=15552000"
|
2021-05-09 22:07:17 +02:00
|
|
|
- "co.elastic.logs/module=apache"
|
|
|
|
- "co.elastic.logs/fileset=access"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
proxy:
|
|
|
|
external: true
|