Bake Nginx config into image at build time instead of bind mount - fixes Coolify deployment
This commit is contained in:
+2
-3
@@ -3,12 +3,11 @@ version: '3.8'
|
|||||||
services:
|
services:
|
||||||
# 1. Nginx Gateway Reverse Proxy
|
# 1. Nginx Gateway Reverse Proxy
|
||||||
gateway:
|
gateway:
|
||||||
image: nginx:alpine
|
build:
|
||||||
|
context: ./docker/nginx # Build from our custom Dockerfile
|
||||||
container_name: gis_gateway
|
container_name: gis_gateway
|
||||||
ports:
|
ports:
|
||||||
- "${HOST_PORT_GATEWAY:-80}:80"
|
- "${HOST_PORT_GATEWAY:-80}:80"
|
||||||
volumes:
|
|
||||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- php-app
|
- php-app
|
||||||
- next-app
|
- next-app
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user