Files

35 lines
793 B
YAML

services:
ai-router:
build:
context: .
image: ai-router:local
restart: unless-stopped
ports:
- "127.0.0.1:${AI_ROUTER_PORT:-8080}:8080"
volumes:
- type: bind
source: ./config.yaml
target: /app/config.yaml
read_only: true
bind:
create_host_path: false
- type: bind
source: ./data
target: /app/data
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
stop_grace_period: 30s
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/admin/api/session"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"