From 94eac31a1ae5a01e1fccba6791a6991925ddaf20 Mon Sep 17 00:00:00 2001 From: Fabio Sinibaldi Date: Fri, 7 Mar 2025 16:40:23 +0100 Subject: [PATCH] From volume to Swarm config --- dockerized/first-level-nginx/swarmed/compose.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/dockerized/first-level-nginx/swarmed/compose.yaml b/dockerized/first-level-nginx/swarmed/compose.yaml index 11826b3..091df6d 100644 --- a/dockerized/first-level-nginx/swarmed/compose.yaml +++ b/dockerized/first-level-nginx/swarmed/compose.yaml @@ -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 \ No newline at end of file + 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