From volume to Swarm config

This commit is contained in:
Fabio Sinibaldi 2025-03-07 16:40:23 +01:00
parent 0d5949bd5e
commit 94eac31a1a
1 changed files with 12 additions and 3 deletions
dockerized/first-level-nginx/swarmed

View File

@ -24,6 +24,15 @@ services:
window: 120s
healthcheck:
test: ["CMD", "service", "nginx", "status"]
volumes:
- ../configs/node.conf:/etc/nginx/nginx.conf:ro
- ../content/index.html:/var/www/default/index.html
configs:
- source: nginx_conf
target: /etc/nginx/nginx.conf
- source:
target: nginx_static
target: /var/www/default/index.html
configs:
nginx_conf:
file: ../configs/node.conf
nginx_static:
file: ../content/index.html