fix: isolate runtime upstream mount
This commit is contained in:
@@ -29,6 +29,7 @@ COPY monitoring/grafana/dashboards /etc/grafana/dashboards
|
||||
FROM nginx:1.30.5-alpine AS loadbalancer
|
||||
|
||||
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY nginx/upstream.conf /etc/nginx/conf.d/upstream.conf
|
||||
|
||||
FROM alpine:3.24.2
|
||||
|
||||
|
||||
@@ -177,8 +177,6 @@ services:
|
||||
image: ${NGINX_IMAGE:-mtusi-nginx:lab4}
|
||||
ports:
|
||||
- "${API_BIND_ADDRESS}:8080"
|
||||
volumes:
|
||||
- ${NGINX_UPSTREAM_FILE:-./nginx/upstream.conf}:/etc/nginx/conf.d/upstream.conf:ro
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_healthy
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
nginx:
|
||||
volumes:
|
||||
- ${NGINX_UPSTREAM_FILE:?NGINX_UPSTREAM_FILE is required}:/etc/nginx/conf.d/upstream.conf:ro
|
||||
@@ -34,7 +34,7 @@ load_manifest() {
|
||||
}
|
||||
|
||||
compose() {
|
||||
docker compose -f compose.yaml -f deploy/compose.images.yaml "$@"
|
||||
docker compose -f compose.yaml -f deploy/compose.images.yaml -f deploy/compose.runtime.yaml "$@"
|
||||
}
|
||||
|
||||
container_name() {
|
||||
|
||||
Reference in New Issue
Block a user