Build streaming voice assistant for Mini 2
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# alice-backend
|
||||
alice.pepega.systems {
|
||||
@voice path /v1/voice /healthz
|
||||
handle @voice {
|
||||
reverse_proxy alice-backend:3000
|
||||
}
|
||||
handle {
|
||||
respond 404
|
||||
}
|
||||
}
|
||||
|
||||
miniapp.pepega.systems {
|
||||
@miniapp path / /style.css /app.js /api/admin /api/admin/*
|
||||
handle @miniapp {
|
||||
reverse_proxy alice-backend:3000
|
||||
}
|
||||
handle {
|
||||
respond 404
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ..
|
||||
env_file: ../.env
|
||||
volumes:
|
||||
- ../data:/data
|
||||
networks:
|
||||
web:
|
||||
aliases: [alice-backend]
|
||||
restart: unless-stopped
|
||||
init: true
|
||||
read_only: true
|
||||
cap_drop: [ALL]
|
||||
security_opt: [no-new-privileges:true]
|
||||
mem_limit: 192m
|
||||
cpus: 0.75
|
||||
pids_limit: 64
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: "false"
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "2m"
|
||||
max-file: "2"
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
Reference in New Issue
Block a user