Update docker compose

This commit is contained in:
Plague Fox 2024-02-13 21:31:48 +04:00
parent 4bf4e4865c
commit ed21fded75

View file

@ -1,20 +1,20 @@
version: '3.9' version: "3.9"
x-base_service: &base_service x-base_service: &base_service
ports: ports:
- "${WEBUI_PORT:-7860}:7860" - "${WEBUI_PORT:-7860}:7860"
volumes: volumes:
- &v1 ./data:/data - &v1 ./data:/data
- &v2 ./output:/output - &v2 ./output:/output
stop_signal: SIGKILL stop_signal: SIGKILL
tty: true tty: true
deploy: deploy:
resources: resources:
reservations: reservations:
devices: devices:
- driver: nvidia - driver: nvidia
device_ids: ['0'] device_ids: ["0"]
capabilities: [compute, utility] capabilities: [compute, utility]
name: webui-docker name: webui-docker
@ -85,7 +85,6 @@ services:
# - PRELOAD=true # - PRELOAD=true
# - CLI_ARGS=--always_use_cpu # - CLI_ARGS=--always_use_cpu
comfy: &comfy comfy: &comfy
<<: *base_service <<: *base_service
profiles: ["comfy"] profiles: ["comfy"]
@ -105,16 +104,16 @@ services:
# https://ngrok.com/docs/using-ngrok-with/docker/ # https://ngrok.com/docs/using-ngrok-with/docker/
# http://127.0.0.1:4040/inspect/http # http://127.0.0.1:4040/inspect/http
ngrok: ngrok:
image: ngrok/ngrok:latest image: ngrok/ngrok:latest
container_name: ngrok container_name: ngrok
restart: unless-stopped restart: unless-stopped
profiles: ["ngrok"] profiles: ["ngrok"]
command: command:
- "start" - "start"
- "--all" - "--all"
- "--config" - "--config"
- "/etc/ngrok.yml" - "/etc/ngrok.yml"
volumes: volumes:
- ./data/ngrok/ngrok.yml:/etc/ngrok.yml - ./data/ngrok/ngrok.yml:/etc/ngrok.yml
ports: ports:
- 4040:4040 - 4040:4040