From 85262dc1309a896604cca98abb756f95af632afa Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 2 Nov 2022 09:00:07 -0700 Subject: [PATCH] #67 Init nextcloud --- server/config/nextcloud/.env | 1 + server/config/nextcloud/docker-compose.yml | 25 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 server/config/nextcloud/.env create mode 100644 server/config/nextcloud/docker-compose.yml 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