From 10031b188b23ae3a2d72909ce882d1f30564499d Mon Sep 17 00:00:00 2001 From: Frank Dekker Date: Fri, 26 Jan 2024 23:09:21 +0100 Subject: [PATCH] Configure nginx from composer.yaml --- dev/compose.yaml | 7 ++----- dev/docker/nginx/Dockerfile | 6 ------ 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 dev/docker/nginx/Dockerfile diff --git a/dev/compose.yaml b/dev/compose.yaml index ff94d1f4..9019f892 100644 --- a/dev/compose.yaml +++ b/dev/compose.yaml @@ -2,15 +2,12 @@ version: '3' services: nginx: - container_name: log-viewer-nginx - build: - context: . - dockerfile: ./docker/nginx/Dockerfile + image: nginx:stable-alpine ports: - ${NGINX_PORT:-8888}:80 volumes: - ../.:/app:rw - - log-viewer-log:/var/log/nginx:rw + - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro php-fpm: container_name: log-viewer-php diff --git a/dev/docker/nginx/Dockerfile b/dev/docker/nginx/Dockerfile deleted file mode 100644 index b879c4d0..00000000 --- a/dev/docker/nginx/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -FROM nginx:stable-alpine - -# Copy nginx config -COPY ./docker/nginx/default.conf /etc/nginx/conf.d/default.conf - -RUN rm /var/log/nginx/access.log && rm /var/log/nginx/error.log