Files
bifrost/examples/dockers/docker-compose.yml
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

37 lines
1.1 KiB
YAML

services:
bifrost:
image: maximhq/bifrost:v1.4.3
container_name: bifrost
ports:
- "8080:8080"
volumes:
- ./data:/app/data
environment:
- APP_PORT=8080
- APP_HOST=0.0.0.0
- LOG_LEVEL=info
- LOG_STYLE=json
# Go runtime performance tuning (uncomment and adjust for your workload):
# - GOGC=200 # Higher = less GC, more memory (default: 100)
# - GOMEMLIMIT=3600MiB # Set to ~90% of container memory limit
# File descriptor limits for high-concurrency workloads
ulimits:
nofile:
soft: 65536
hard: 65536
# Resource limits (uncomment and adjust based on your infrastructure)
# deploy:
# resources:
# limits:
# cpus: '4'
# memory: 4G
# reservations:
# cpus: '2'
# memory: 2G
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "-O", "/dev/null", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped