2020-02-27 16:13:02 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
nextcloud:
|
|
|
|
image: nextcloud:apache
|
|
|
|
container_name: nextcloud
|
|
|
|
restart: always
|
2020-02-27 16:17:54 +00:00
|
|
|
ports:
|
|
|
|
- "1869:80"
|
2020-02-27 16:13:02 +00:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
2020-07-11 10:45:05 +00:00
|
|
|
- mariadb
|
2020-02-27 16:13:02 +00:00
|
|
|
- proxy
|
|
|
|
volumes:
|
2020-07-11 10:45:05 +00:00
|
|
|
- /docker/nextcloud:/var/www/html
|
2020-02-27 16:13:02 +00:00
|
|
|
- /mnt/Storage/Nextcloud:/var/www/html/data
|
2020-03-02 19:38:10 +00:00
|
|
|
- /mnt/Storage/Syncthing:/Syncthing
|
2020-03-02 19:49:14 +00:00
|
|
|
- /mnt/Storage/Media/Music:/Music
|
2020-02-27 16:13:02 +00:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/Helsinki
|
|
|
|
- MYSQL_HOST=mariadb-nextcloud
|
|
|
|
- REDIS_HOST=redis
|
2020-10-17 08:53:27 +00:00
|
|
|
- REDIS_HOST_PASSWORD=123
|
2020-02-27 16:13:02 +00:00
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
|
|
|
|
- "traefik.http.routers.nextcloud-redirect.entrypoints=http"
|
2020-12-06 09:36:01 +00:00
|
|
|
- "traefik.http.routers.nextcloud-redirect.rule=Host(`cloud.korhonen.cc`)"
|
2020-02-27 16:13:02 +00:00
|
|
|
- "traefik.http.middlewares.http2https.redirectscheme.scheme=https"
|
|
|
|
- "traefik.http.routers.nextcloud-redirect.middlewares=http2https"
|
|
|
|
|
|
|
|
- "traefik.http.routers.nextcloud.entrypoints=https"
|
2020-12-06 09:36:01 +00:00
|
|
|
- "traefik.http.routers.nextcloud.rule=Host(`cloud.korhonen.cc`)"
|
2020-02-27 16:13:02 +00: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 08:53:27 +00:00
|
|
|
command: redis-server --requirepass 123
|
2020-02-27 16:13:02 +00:00
|
|
|
|
|
|
|
cron:
|
|
|
|
image: nextcloud:apache
|
|
|
|
container_name: cron
|
|
|
|
restart: always
|
|
|
|
volumes:
|
2020-07-11 10:45:05 +00:00
|
|
|
- /docker/nextcloud:/var/www/html
|
2020-02-27 16:13:02 +00:00
|
|
|
entrypoint: /cron.sh
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nextcloud:
|
|
|
|
external: false
|
2020-07-11 10:45:05 +00:00
|
|
|
mariadb:
|
|
|
|
external: true
|
2020-02-27 16:13:02 +00:00
|
|
|
proxy:
|
|
|
|
external: true
|