diff --git a/docker-compose.yaml b/docker-compose.yaml index dedf364..6312be5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,12 +3,11 @@ version: '3.8' services: # 1. Nginx Gateway Reverse Proxy gateway: - image: nginx:alpine + build: + context: ./docker/nginx # Build from our custom Dockerfile container_name: gis_gateway ports: - "${HOST_PORT_GATEWAY:-80}:80" - volumes: - - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - php-app - next-app diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile new file mode 100644 index 0000000..8ab0de0 --- /dev/null +++ b/docker/nginx/Dockerfile @@ -0,0 +1,7 @@ +FROM nginx:alpine + +# Copy the Nginx configuration into the image at build time. +# This avoids bind-mount issues on production servers (e.g., Coolify). +COPY default.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80