fix: Add image name and use deploy.restart_policy for Swarm
This commit is contained in:
@@ -9,10 +9,13 @@ services:
|
||||
- /mnt/DockerMount/minio-webui/redis:/data
|
||||
networks:
|
||||
- minio-webui-network
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: any
|
||||
|
||||
# Combined app (backend + frontend)
|
||||
app:
|
||||
image: minio-webui:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
@@ -48,7 +51,9 @@ services:
|
||||
- /mnt/DockerMount/minio-webui/mc-config:/home/nodejs/.mc
|
||||
depends_on:
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: any
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.minio-webui.rule=Host(`minio-webui.local.nothaft.cloud`)"
|
||||
|
||||
Reference in New Issue
Block a user