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}
|
image: ${REGISTRY}/saas-imobiliaria-frontend:${IMAGE_TAG:-latest}
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
volumes:
|
||||||
|
- type: bind
|
||||||
|
source: /opt/saas-imobiliaria/public/imoveis
|
||||||
|
target: /usr/share/nginx/html/imoveis
|
||||||
|
read_only: true
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: any
|
condition: any
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 5
|
max_attempts: 5
|
||||||
mounts:
|
|
||||||
- type: bind
|
|
||||||
source: /opt/saas-imobiliaria/public/imoveis
|
|
||||||
target: /usr/share/nginx/html/imoveis
|
|
||||||
read_only: true
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=proxy"
|
- "traefik.docker.network=proxy"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue