fix: use volumes bind-mount syntax for swarm - mounts key not supported in deploy block
This commit is contained in:
parent
3329f81a97
commit
6ef5a7a17e
1 changed files with 5 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue