From 6681df5a10f0a9b465f0b79eae66dd1a3d71407b Mon Sep 17 00:00:00 2001 From: Boban Blaskovic Date: Sun, 31 May 2026 17:25:53 +0200 Subject: [PATCH] nginx: bake config into custom image (no single-file bind mount) --- docker-compose.yml | 4 ++-- docker/nginx/Dockerfile | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 docker/nginx/Dockerfile diff --git a/docker-compose.yml b/docker-compose.yml index 5b29fe1..164dd63 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,14 +2,14 @@ name: ${STACK_NAME:-clupilot} services: nginx: - image: nginx:1.27-alpine + build: ./docker/nginx + image: ${STACK_NAME:-clupilot}/nginx:latest container_name: ${STACK_NAME:-clupilot}-nginx restart: unless-stopped ports: - "${HTTP_PORT:-80}:80" volumes: - ./app:/var/www/html - - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro extra_hosts: - "host.docker.internal:host-gateway" depends_on: diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile new file mode 100644 index 0000000..7ab8af1 --- /dev/null +++ b/docker/nginx/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:1.27-alpine +COPY default.conf /etc/nginx/conf.d/default.conf