fix: use volumes bind-mount syntax for swarm - mounts key not supported in deploy block
Some checks failed
CI/CD → Deploy via SSH / Build & Push Docker Images (push) Successful in 31s
CI/CD → Deploy via SSH / Deploy via SSH (push) Successful in 5m17s
CI/CD → Deploy via SSH / Validate HTTPS & Endpoints (push) Failing after 47s

This commit is contained in:
MatheusAlves96 2026-04-21 02:14:19 -03:00
parent 3329f81a97
commit 6ef5a7a17e

View file

@ -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"