Bind nginx.conf to nextcloud nginx instead of build container

This commit is contained in:
Florian Zirker 2021-01-09 17:09:55 +01:00
parent 05f7cbc1af
commit 1ff2d4cc00
3 changed files with 2 additions and 4 deletions

View file

@ -3,12 +3,12 @@ version: "3"
services: services:
web: web:
#nginx container image: nginx
build: ./web
depends_on: depends_on:
- app - app
volumes: volumes:
- ${VOLUMES_PATH}/nextcloud_html:/var/www/html:ro - ${VOLUMES_PATH}/nextcloud_html:/var/www/html:ro
- $PWD/nginx.conf:/etc/nginx/nginx.conf:ro
restart: unless-stopped restart: unless-stopped
networks: networks:
- web - web

View file

@ -1,2 +0,0 @@
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf