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