From 6ef5a7a17e52cbe1deb2e3c0e6973717b63a95ac Mon Sep 17 00:00:00 2001 From: MatheusAlves96 Date: Tue, 21 Apr 2026 02:14:19 -0300 Subject: [PATCH] fix: use volumes bind-mount syntax for swarm - mounts key not supported in deploy block --- docker-compose.prod.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 9cdc54b..1ab79f7 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -55,17 +55,17 @@ services: image: ${REGISTRY}/saas-imobiliaria-frontend:${IMAGE_TAG:-latest} networks: - proxy + volumes: + - type: bind + source: /opt/saas-imobiliaria/public/imoveis + target: /usr/share/nginx/html/imoveis + read_only: true deploy: replicas: 1 restart_policy: condition: any delay: 5s max_attempts: 5 - mounts: - - type: bind - source: /opt/saas-imobiliaria/public/imoveis - target: /usr/share/nginx/html/imoveis - read_only: true labels: - "traefik.enable=true" - "traefik.docker.network=proxy"