From fa7c91e6a5818994ea6e517987452f9929b298fd Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 2 Nov 2022 10:52:11 -0700 Subject: [PATCH] #67 Switch to LSIO image --- homelab/server/config/nextcloud/docker-compose.yml | 11 +++++++---- homelab/server/config/nextcloud/nextcloud.env | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 homelab/server/config/nextcloud/nextcloud.env diff --git a/homelab/server/config/nextcloud/docker-compose.yml b/homelab/server/config/nextcloud/docker-compose.yml index 0b26a47c..e88dea43 100644 --- a/homelab/server/config/nextcloud/docker-compose.yml +++ b/homelab/server/config/nextcloud/docker-compose.yml @@ -1,8 +1,8 @@ version: '3' services: nextcloud: - image: nextcloud/all-in-one:latest - container_name: nextcloud-aio-mastercontainer + image: lscr.io/linuxserver/nextcloud:latest + container_name: nextcloud_nextcloud logging: driver: loki options: @@ -11,14 +11,17 @@ services: loki-retries: "1" loki-timeout: "2s" keep-file: "true" + env_file: + - nextcloud.env labels: - traefik.http.routers.nextcloud.rule=Host(`nextcloud.jafner.net`) - traefik.http.routers.nextcloud.tls.certresolver=lets-encrypt + - traefik.http.services.nextcloud.loadbalancer.server.port=443 networks: - web volumes: - - nextcloud_aio_mastercontainer:/mnt/docker-aio-config - - /var/run/docker.sock:/var/run/docker.sock:ro + - $DOCKER_DATA/config:/config + - $DOCKER_DATA/data:/data networks: web: diff --git a/homelab/server/config/nextcloud/nextcloud.env b/homelab/server/config/nextcloud/nextcloud.env new file mode 100644 index 00000000..76b0f80c --- /dev/null +++ b/homelab/server/config/nextcloud/nextcloud.env @@ -0,0 +1,3 @@ +PUID=1000 +PGID=1000 +TZ=Americal/Los_Angeles \ No newline at end of file