nginx: bake config into custom image (no single-file bind mount)
parent
33aac5c852
commit
6681df5a10
|
|
@ -2,14 +2,14 @@ name: ${STACK_NAME:-clupilot}
|
||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:1.27-alpine
|
build: ./docker/nginx
|
||||||
|
image: ${STACK_NAME:-clupilot}/nginx:latest
|
||||||
container_name: ${STACK_NAME:-clupilot}-nginx
|
container_name: ${STACK_NAME:-clupilot}-nginx
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "${HTTP_PORT:-80}:80"
|
- "${HTTP_PORT:-80}:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./app:/var/www/html
|
- ./app:/var/www/html
|
||||||
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
FROM nginx:1.27-alpine
|
||||||
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
||||||
Loading…
Reference in New Issue