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
|
- /mnt/DockerMount/minio-webui/redis:/data
|
||||||
networks:
|
networks:
|
||||||
- minio-webui-network
|
- minio-webui-network
|
||||||
restart: unless-stopped
|
deploy:
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
|
||||||
# Combined app (backend + frontend)
|
# Combined app (backend + frontend)
|
||||||
app:
|
app:
|
||||||
|
image: minio-webui:latest
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
@@ -48,7 +51,9 @@ services:
|
|||||||
- /mnt/DockerMount/minio-webui/mc-config:/home/nodejs/.mc
|
- /mnt/DockerMount/minio-webui/mc-config:/home/nodejs/.mc
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
restart: unless-stopped
|
deploy:
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.minio-webui.rule=Host(`minio-webui.local.nothaft.cloud`)"
|
- "traefik.http.routers.minio-webui.rule=Host(`minio-webui.local.nothaft.cloud`)"
|
||||||
|
|||||||
Reference in New Issue
Block a user