init
All checks were successful
Build and Push whisper-client / build-and-push (push) Successful in 58s

This commit is contained in:
Xav
2024-03-06 11:53:36 +01:00
commit 73ddf4661c
9 changed files with 436 additions and 0 deletions

32
compose.yaml Normal file
View File

@@ -0,0 +1,32 @@
networks:
traefik:
external: true
name: traefik_web
services:
app:
image: git.xav.ovh/xav/whisperclient
restart: 'unless-stopped'
labels:
traefik.enable: true
traefik.docker.network: traefik_web
traefik.http.routers.whisper-http.rule: Host(`${WHISPER_URL}`)
traefik.http.routers.whisper-http.entrypoints: web
traefik.http.routers.whisper-https.rule: Host(`${WHISPER_URL}`)
traefik.http.routers.whisper-https.tls: true
traefik.http.routers.whisper-https.entrypoints: websecure
traefik.http.routers.whisper-https.tls.certresolver: letsencrypt
traefik.http.services.whisper.loadbalancer.server.port: 5000
traefik.http.routers.whisper-https.middlewares: whisper-auth
traefik.http.middlewares.whisper-auth.basicauth.users: ${WHISPER_BASICAUTH}
networks:
- traefik
deploy:
resources:
limits:
cpus: '1'
memory: 150M
environment:
FLASK_SECRET_KEY: ${FLASK_SECRET_KEY}
OPENAI_API_KEY: ${OPENAI_API_KEY}