From 1ff2d4cc0058e2f1ba33db7ad1038330f8ab7b35 Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Sat, 9 Jan 2021 17:09:55 +0100 Subject: [PATCH] Bind nginx.conf to nextcloud nginx instead of build container --- nextcloud/docker-compose.yaml | 4 ++-- nextcloud/{web => }/nginx.conf | 0 nextcloud/web/Dockerfile | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) rename nextcloud/{web => }/nginx.conf (100%) delete mode 100644 nextcloud/web/Dockerfile diff --git a/nextcloud/docker-compose.yaml b/nextcloud/docker-compose.yaml index 27e0c5d..66f2bcf 100644 --- a/nextcloud/docker-compose.yaml +++ b/nextcloud/docker-compose.yaml @@ -3,12 +3,12 @@ version: "3" services: web: - #nginx container - build: ./web + image: nginx depends_on: - app volumes: - ${VOLUMES_PATH}/nextcloud_html:/var/www/html:ro + - $PWD/nginx.conf:/etc/nginx/nginx.conf:ro restart: unless-stopped networks: - web diff --git a/nextcloud/web/nginx.conf b/nextcloud/nginx.conf similarity index 100% rename from nextcloud/web/nginx.conf rename to nextcloud/nginx.conf diff --git a/nextcloud/web/Dockerfile b/nextcloud/web/Dockerfile deleted file mode 100644 index b846f21..0000000 --- a/nextcloud/web/Dockerfile +++ /dev/null @@ -1,2 +0,0 @@ -FROM nginx:alpine -COPY nginx.conf /etc/nginx/nginx.conf