fix: Use build directive for standalone Docker (not Swarm)
This commit is contained in:
@@ -9,13 +9,13 @@ services:
|
|||||||
- /mnt/DockerMount/minio-webui/redis:/data
|
- /mnt/DockerMount/minio-webui/redis:/data
|
||||||
networks:
|
networks:
|
||||||
- minio-webui-network
|
- minio-webui-network
|
||||||
deploy:
|
restart: unless-stopped
|
||||||
restart_policy:
|
|
||||||
condition: any
|
|
||||||
|
|
||||||
# Combined app (backend + frontend)
|
# Combined app (backend + frontend)
|
||||||
app:
|
app:
|
||||||
image: theluap/minio-webui:latest
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=3000
|
- PORT=3000
|
||||||
@@ -48,9 +48,7 @@ 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
|
||||||
deploy:
|
restart: unless-stopped
|
||||||
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