-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (28 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (28 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Use this file to easily run the Trylon AI Gateway in a containerized environment.
#
# Usage:
# - Start the service in the background: docker-compose up -d
# - View logs: docker-compose logs -f
# - Stop the service: docker-compose down
# - Rebuild and restart: docker-compose up -d --build
version: "3.8"
services:
trylon-gateway:
build: .
container_name: trylon-gateway
ports:
- "${PORT:-8000}:${PORT:-8000}"
env_file:
- .env
volumes:
- ./policies.yaml:/app/policies.yaml
- trylon_hf_cache:/root/.cache/huggingface
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${PORT:-8000}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 90s
volumes:
trylon_hf_cache: