diff --git a/server/config/nextcloud/.env b/server/config/nextcloud/.env new file mode 100644 index 0000000..2595896 --- /dev/null +++ b/server/config/nextcloud/.env @@ -0,0 +1 @@ +DOCKER_DATA=/home/joey/data/nextcloud \ No newline at end of file diff --git a/server/config/nextcloud/docker-compose.yml b/server/config/nextcloud/docker-compose.yml new file mode 100644 index 0000000..9a6c811 --- /dev/null +++ b/server/config/nextcloud/docker-compose.yml @@ -0,0 +1,25 @@ +version: '3' +services: + nextcloud: + image: nextcloud/all-in-one:latest + container_name: nextcloud_nextcloud + logging: + driver: loki + options: + loki-url: http://localhost:3100/loki/api/v1/push + loki-batch-size: "50" + loki-retries: "1" + loki-timeout: "2s" + keep-file: "true" + labels: + - traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`) + - traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt + networks: + - web + volumes: + - $DOCKER_DATA/docker-aio-config:/mnt/docker-aio-config + - /var/run/docker.sock:/var/run/docker.sock:ro + +networks: + web: + external: true \ No newline at end of file