2020-11-28 22:51:37 +01:00
|
|
|
services:
|
|
|
|
|
|
|
|
web:
|
2021-01-09 17:09:55 +01:00
|
|
|
image: nginx
|
2020-11-28 22:51:37 +01:00
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html:ro
|
2021-01-09 17:09:55 +01:00
|
|
|
- $PWD/nginx.conf:/etc/nginx/nginx.conf:ro
|
2020-11-28 22:51:37 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- nextcloud
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.nextcloud.rule=Host(`cloud.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.nextcloud.entrypoints=websecure"
|
2021-03-20 01:32:35 +01:00
|
|
|
- "traefik.http.routers.nextcloud.tls.certresolver=netcup"
|
2020-11-28 22:51:37 +01:00
|
|
|
- "traefik.http.routers.nextcloud.tls.options=intermediate@file"
|
|
|
|
- "traefik.http.middlewares.nextcloudHeader.headers.customRequestHeaders.X-Forwarded-Proto=https"
|
|
|
|
- "traefik.http.middlewares.nextcloudHeader.headers.stsSeconds=15552000"
|
|
|
|
- "traefik.http.middlewares.nextcloudHeader.headers.stsIncludeSubdomains=true"
|
|
|
|
- "traefik.http.middlewares.nextcloudHeader.headers.stsPreload=true"
|
|
|
|
- "traefik.http.middlewares.nextcloudHeader.headers.forceSTSHeader=true"
|
|
|
|
- "traefik.http.routers.nextcloud.middlewares=nextcloudHeader"
|
2021-03-28 13:50:02 +02:00
|
|
|
- "docker.group=netxtcloud"
|
2020-11-28 22:51:37 +01:00
|
|
|
|
2021-11-24 15:36:30 +01:00
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
app:
|
2021-11-24 15:36:30 +01:00
|
|
|
image: nextcloud:${NC_MAIN_VERSION}-fpm
|
2020-11-28 22:51:37 +01:00
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
environment:
|
|
|
|
- NEXTCLOUD_TRUSTED_DOMAINS=${NEXTCLOUD_TRUSTED_DOMAINS}
|
|
|
|
- MYSQL_HOST=db
|
|
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
|
|
- MYSQL_USER=${MYSQL_USER}
|
|
|
|
- REDIS_HOST=redis
|
|
|
|
- REDIS_HOST_PASSWORD=${REDIS_HOST_PASSWORD}
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2021-04-01 19:20:45 +02:00
|
|
|
labels:
|
|
|
|
- "docker.group=netxtcloud"
|
2021-11-24 15:36:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
cron:
|
2022-10-25 14:36:34 +02:00
|
|
|
image: nextcloud:${NC_MAIN_VERSION}
|
2021-11-24 15:36:30 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_data:/var/www/html/data
|
2023-02-07 13:49:38 +01:00
|
|
|
# If I mount my crontab into the container crond is not working any more :(
|
|
|
|
# docker log should print 11110001 lines
|
|
|
|
# https://github.com/nextcloud/docker/issues/1775
|
|
|
|
# https://github.com/nextcloud/docker/issues/1695
|
|
|
|
# build own cron image?
|
|
|
|
# - $PWD/crontab:/var/spool/cron/crontabs/www-data
|
2021-11-24 15:36:30 +01:00
|
|
|
entrypoint: /cron.sh
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
labels:
|
|
|
|
- "docker.group=netxtcloud"
|
2021-04-01 19:20:45 +02:00
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
|
|
|
|
db:
|
|
|
|
image: mariadb:10
|
2021-07-23 21:40:25 +02:00
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --skip-innodb-read-only-compressed
|
2020-11-28 22:51:37 +01:00
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_db:/var/lib/mysql
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Europe/Berlin
|
|
|
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
|
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
|
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
|
|
|
- MYSQL_USER=${MYSQL_USER}
|
2022-09-09 10:50:42 +02:00
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "200k"
|
|
|
|
max-file: "5"
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
2022-09-09 10:50:42 +02:00
|
|
|
- mariadb
|
2021-03-28 13:50:02 +02:00
|
|
|
labels:
|
|
|
|
- "docker.group=netxtcloud"
|
2020-11-28 22:51:37 +01:00
|
|
|
|
2021-11-24 15:36:30 +01:00
|
|
|
|
2022-09-09 10:50:42 +02:00
|
|
|
adminer:
|
|
|
|
image: adminer
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- mariadb
|
|
|
|
environment:
|
|
|
|
- ADMINER_DEFAULT_SERVER=db
|
|
|
|
- ADMINER_DESIGN=flat
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.adminer.rule=Host(`adminer.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.adminer.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.adminer.tls.certresolver=netcup"
|
|
|
|
- "traefik.http.routers.adminer.tls.options=intermediate@file"
|
|
|
|
- "traefik.http.routers.adminer.middlewares=adminerauth"
|
|
|
|
- "traefik.http.middlewares.adminerauth.basicauth.users=${HTPASSWD_ADMINER}"
|
|
|
|
- "docker.group=netxtcloud"
|
|
|
|
|
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
redis:
|
2023-02-07 13:49:38 +01:00
|
|
|
image: redis
|
2020-11-28 22:51:37 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
command: redis-server --requirepass ${REDIS_HOST_PASSWORD}
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
2023-02-07 13:49:38 +01:00
|
|
|
- monitoring
|
2020-11-28 22:51:37 +01:00
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_redis:/data
|
2021-03-28 13:50:02 +02:00
|
|
|
labels:
|
|
|
|
- "docker.group=netxtcloud"
|
2020-11-28 22:51:37 +01:00
|
|
|
|
|
|
|
|
2022-10-25 14:36:34 +02:00
|
|
|
collabora:
|
|
|
|
image: collabora/code
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
- web
|
2022-10-25 14:36:34 +02:00
|
|
|
cap_add:
|
|
|
|
- MKNOD
|
2020-11-28 22:51:37 +01:00
|
|
|
expose:
|
2022-10-25 14:36:34 +02:00
|
|
|
- 9980
|
|
|
|
environment:
|
|
|
|
- domain=cloud.${DOMAIN}
|
|
|
|
- username=${COLLABORA_ADMIN_USER}
|
|
|
|
- password=${COLLABORA_ADMIN_PASSWORD}
|
|
|
|
- "extra_params=--o:ssl.enable=false --o:ssl.termination=true"
|
|
|
|
restart: unless-stopped
|
2020-11-28 22:51:37 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
2022-10-25 14:36:34 +02:00
|
|
|
- "traefik.http.routers.collabora.rule=Host(`collabora.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.collabora.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.collabora.tls.certresolver=netcup"
|
|
|
|
- "traefik.http.routers.collabora.tls.options=intermediate@file"
|
|
|
|
- "traefik.http.services.collabora.loadbalancer.server.port=9980"
|
2021-03-28 13:50:02 +02:00
|
|
|
- "docker.group=netxtcloud"
|
2020-11-28 22:51:37 +01:00
|
|
|
|
|
|
|
|
2023-01-09 09:33:18 +01:00
|
|
|
drawio-export:
|
|
|
|
image: jgraph/export-server
|
|
|
|
expose:
|
|
|
|
- "8000"
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
volumes:
|
|
|
|
- ${VOLUMES_PATH}/nextcloud_fonts:/usr/share/fonts/drawio
|
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "docker.group=netxtcloud"
|
|
|
|
|
|
|
|
|
|
|
|
drawio:
|
|
|
|
image: jgraph/drawio
|
|
|
|
networks:
|
|
|
|
- web
|
|
|
|
- nextcloud
|
|
|
|
depends_on:
|
|
|
|
- drawio-export
|
|
|
|
environment:
|
|
|
|
- VIRTUAL_HOST=drawio.${DOMAIN}
|
|
|
|
- VIRTUAL_PORT=8080
|
|
|
|
- LETS_ENCRYPT_ENABLED=false
|
|
|
|
- EXPORT_URL=http://drawio-export:8000/
|
|
|
|
restart: unless-stopped
|
2023-02-07 13:49:38 +01:00
|
|
|
healthcheck:
|
|
|
|
test: curl -f http://localhost:8080 || exit 1
|
|
|
|
interval: 1m30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 5
|
|
|
|
start_period: 20s
|
2023-01-09 09:33:18 +01:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.drawio.rule=Host(`drawio.${DOMAIN}`)"
|
|
|
|
- "traefik.http.routers.drawio.entrypoints=websecure"
|
|
|
|
- "traefik.http.routers.drawio.tls.certresolver=netcup"
|
|
|
|
- "traefik.http.routers.drawio.tls.options=intermediate@file"
|
|
|
|
- "traefik.http.services.drawio.loadbalancer.server.port=8080"
|
|
|
|
- "docker.group=netxtcloud"
|
|
|
|
|
2020-11-28 22:51:37 +01:00
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
|
|
|
nextcloud:
|
2022-09-09 10:50:42 +02:00
|
|
|
mariadb:
|
2023-02-07 13:49:38 +01:00
|
|
|
monitoring:
|
|
|
|
external: true
|