dotfiles/docker/nextcloud/docker-compose.yml

67 lines
1.7 KiB
YAML
Raw Normal View History

2020-02-27 18:13:02 +02:00
version: "3"
services:
nextcloud:
image: nextcloud:apache
container_name: nextcloud
restart: always
2020-02-27 18:17:54 +02:00
ports:
- "1869:80"
2020-02-27 18:13:02 +02:00
networks:
- nextcloud
2021-01-09 11:47:26 +02:00
- postgres
2020-02-27 18:13:02 +02:00
- proxy
volumes:
2020-07-11 13:45:05 +03:00
- /docker/nextcloud:/var/www/html
2020-02-27 18:13:02 +02:00
- /mnt/Storage/Nextcloud:/var/www/html/data
2020-03-02 21:38:10 +02:00
- /mnt/Storage/Syncthing:/Syncthing
2020-03-02 21:49:14 +02:00
- /mnt/Storage/Media/Music:/Music
2020-02-27 18:13:02 +02:00
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Europe/Helsinki
- REDIS_HOST=redis
2020-10-17 11:53:27 +03:00
- REDIS_HOST_PASSWORD=123
2020-02-27 18:13:02 +02:00
depends_on:
- redis
labels:
- "traefik.enable=true"
- "traefik.http.routers.nextcloud-redirect.entrypoints=http"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.nextcloud-redirect.rule=Host(`cloud.korhonen.cc`)"
2020-02-27 18:13:02 +02:00
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
- "traefik.http.routers.nextcloud-redirect.middlewares=http2https"
- "traefik.http.routers.nextcloud.entrypoints=https"
2020-12-06 11:36:01 +02:00
- "traefik.http.routers.nextcloud.rule=Host(`cloud.korhonen.cc`)"
2020-02-27 18:13:02 +02:00
- "traefik.http.routers.nextcloud.tls=true"
- "traefik.http.routers.nextcloud.tls.certresolver=http"
- "traefik.http.routers.nextcloud.service=nextcloud"
- "traefik.docker.network=proxy"
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
redis:
image: redis:alpine
container_name: redis
networks:
- nextcloud
restart: always
2020-10-17 11:53:27 +03:00
command: redis-server --requirepass 123
2020-02-27 18:13:02 +02:00
cron:
image: nextcloud:apache
container_name: cron
restart: always
volumes:
2020-07-11 13:45:05 +03:00
- /docker/nextcloud:/var/www/html
2020-02-27 18:13:02 +02:00
entrypoint: /cron.sh
depends_on:
- redis
networks:
nextcloud:
external: false
2021-01-09 11:47:26 +02:00
postgres:
2020-07-11 13:45:05 +03:00
external: true
2020-02-27 18:13:02 +02:00
proxy:
external: true