mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-08 03:28:35 +03:00
61 lines
2.0 KiB
YAML
61 lines
2.0 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
traefik:
|
|
container_name: whisperbox-transcribe_traefik
|
|
ports:
|
|
- "443:443"
|
|
command:
|
|
- "--providers.docker=true"
|
|
- "--providers.docker.exposedbydefault=false"
|
|
- "--providers.docker.network=whisperbox-transcribe_traefik"
|
|
- "--entrypoints.websecure.address=:443"
|
|
- "--certificatesresolvers.le.acme.email=${TRAEFIK_SSLEMAIL}"
|
|
- "--certificatesresolvers.le.acme.storage=./acme.json"
|
|
- "--certificatesresolvers.le.acme.tlschallenge=true"
|
|
labels:
|
|
- "traefik.http.routers.traefik.tls=true"
|
|
- "traefik.http.routers.traefik.tls.certresolver=le"
|
|
- "traefik.http.routers.traefik.entrypoints=websecure"
|
|
- "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
|
|
- "traefik.http.routers.http-catchall.entrypoints=web"
|
|
- "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
|
|
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
|
|
|
|
|
|
redis:
|
|
container_name: whisperbox-transcribe_redis
|
|
|
|
worker:
|
|
container_name: whisperbox-transcribe_worker
|
|
env_file: .env
|
|
# <GPU SUPPORT>
|
|
# build:
|
|
# dockerfile: worker.gpu.Dockerfile
|
|
volumes:
|
|
- whisperbox-transcribe-data:/etc/whisperbox-transcribe/data
|
|
# <GPU SUPPORT>
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: 1
|
|
# capabilities: [gpu]
|
|
|
|
web:
|
|
container_name: whisperbox-transcribe_web
|
|
env_file: .env
|
|
volumes:
|
|
- whisperbox-transcribe-data:/etc/whisperbox-transcribe/data/
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.web.loadbalancer.server.port=8000"
|
|
- "traefik.http.routers.web.rule=(Host(`${TRAEFIK_DOMAIN}`))"
|
|
- "traefik.http.routers.web.entrypoints=websecure"
|
|
- "traefik.http.routers.web.tls=true"
|
|
- "traefik.http.routers.web.tls.certresolver=le"
|
|
|
|
volumes:
|
|
whisperbox-transcribe-data:
|