2020-03-08 18:12:12 +00:00
|
|
|
version: "2.3"
|
2020-02-09 15:21:48 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
nextcloud:
|
2020-08-30 20:28:49 +01:00
|
|
|
image: linuxserver/nextcloud:19.0.2-ls96
|
2020-02-09 15:21:48 +00:00
|
|
|
environment:
|
|
|
|
- PUID={{ docker_user.id }}
|
|
|
|
- PGID={{ docker_user.id }}
|
|
|
|
- TZ=Europe/London
|
|
|
|
volumes:
|
2020-07-02 18:44:27 +01:00
|
|
|
- ./apps:/config/www/nextcloud/apps
|
|
|
|
- ./config.php:/config/www/nextcloud/config/config.php
|
2020-02-09 15:21:48 +00:00
|
|
|
- /srv/nextcloud-data/data:/data
|
|
|
|
- /mnt/media:/content:ro
|
|
|
|
restart: unless-stopped
|
2020-06-24 18:35:20 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- collabora
|
2020-02-09 15:21:48 +00:00
|
|
|
tmpfs:
|
|
|
|
- /config/log
|
|
|
|
labels:
|
2020-06-18 20:49:12 +01:00
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.nextcloud.rule=Host(`intersect.jakehoward.tech`)
|
|
|
|
- traefik.http.routers.nextcloud.tls.certresolver=le
|
|
|
|
- traefik.http.services.nextcloud-nextcloud.loadbalancer.server.port=443
|
|
|
|
- traefik.http.services.nextcloud-nextcloud.loadbalancer.server.scheme=https
|
|
|
|
- traefik.http.middlewares.nextcloud-hsts.headers.stsseconds=15552000
|
|
|
|
- traefik.http.routers.nextcloud.middlewares=nextcloud-hsts@docker
|
2020-02-09 15:21:48 +00:00
|
|
|
|
2020-03-18 21:35:17 +00:00
|
|
|
db:
|
|
|
|
image: postgres:12-alpine
|
2020-02-09 15:21:48 +00:00
|
|
|
restart: unless-stopped
|
2020-03-18 21:35:17 +00:00
|
|
|
volumes:
|
2020-05-28 20:20:33 +01:00
|
|
|
- /srv/nextcloud-postgres:/var/lib/postgresql/data
|
2020-03-18 21:35:17 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=nextcloud
|
|
|
|
- POSTGRES_USER=nextcloud
|
2020-02-09 15:21:48 +00:00
|
|
|
|
2020-03-27 17:50:47 +00:00
|
|
|
db-backups:
|
|
|
|
image: prodrigestivill/postgres-backup-local:12-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /scratch/db-backups:/backups
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
|
|
|
- POSTGRES_HOST=db
|
|
|
|
- POSTGRES_PASSWORD=nextcloud
|
|
|
|
- POSTGRES_USER=nextcloud
|
|
|
|
- POSTGRES_DB=nextcloud
|
|
|
|
- BACKUP_KEEP_MONTHS=1
|
|
|
|
- BACKUP_KEEP_WEEKS=1
|
|
|
|
|
2020-02-09 15:21:48 +00:00
|
|
|
redis:
|
2020-06-07 15:09:20 +01:00
|
|
|
image: redis:6-alpine
|
2020-02-09 15:21:48 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./redis:/data
|
|
|
|
|
2020-06-07 21:09:02 +01:00
|
|
|
collabora:
|
|
|
|
image: collabora/code:latest
|
2020-02-09 15:21:48 +00:00
|
|
|
restart: unless-stopped
|
2020-06-07 21:09:02 +01:00
|
|
|
cap_add:
|
|
|
|
- MKNOD
|
2020-02-09 15:21:48 +00:00
|
|
|
environment:
|
2020-06-18 20:49:12 +01:00
|
|
|
- domain=intersect\\.jakehoward\\.tech
|
2020-02-09 15:21:48 +00:00
|
|
|
labels:
|
2020-06-18 20:49:12 +01:00
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.collabora.rule=Host(`collabora.jakehoward.tech`)
|
|
|
|
- traefik.http.routers.collabora.tls.certresolver=le
|
|
|
|
- traefik.http.services.collabora-nextcloud.loadbalancer.server.scheme=https
|