Linked configuration

This commit is contained in:
Fabio Sinibaldi 2025-03-04 16:03:23 +01:00
parent 8f614c61f7
commit ddbc6a11f2
1 changed files with 7 additions and 2 deletions

View File

@ -2,7 +2,7 @@ version: '3'
networks: networks:
cluster: cluster:
external: false driver: bridge
services: services:
@ -39,7 +39,9 @@ services:
nginx: nginx:
image: nginx:latest image: nginx:latest
ports: ports:
- '8088:80' - '80:80'
volumes:
- ./nginx/config.con:/etc/nginx/nginx.con:ro
deploy: deploy:
replicas: 4 replicas: 4
update_config: update_config:
@ -57,5 +59,8 @@ services:
window: 120s window: 120s
healthcheck: healthcheck:
test: ["CMD", "service", "nginx", "status"] test: ["CMD", "service", "nginx", "status"]
networks: networks:
- cluster - cluster