this repo has no description
1# Production overrides for docker-compose.yml
2# Usage: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
3#
4# This config adds Caddy reverse proxy with auto-SSL (Let's Encrypt)
5# Note: Internal service ports are still exposed but should be blocked by firewall
6# Only ports 80/443 should be open in Hetzner Cloud Firewall
7
8services:
9 app:
10 build: .
11 ports:
12 - '3000:3000'
13 env_file: .env
14 environment:
15 # Docker-internal URLs (override .env values)
16 - LETTA_BASE_URL=http://letta:8283
17 - LITELLM_URL=http://litellm:4000
18 - ANTHROPIC_PROXY_URL=http://anthropic-proxy:4001/v1
19 - TOOL_WEBHOOK_URL=http://app:3000
20 volumes:
21 - ./data:/app/data
22 - ./prompts:/app/prompts:ro
23 networks:
24 - assistant-net
25 restart: unless-stopped
26 depends_on:
27 letta:
28 condition: service_healthy
29 healthcheck:
30 test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
31 interval: 30s
32 start_period: 10s
33 start_interval: 2s
34 timeout: 10s
35 retries: 3
36
37 caddy:
38 image: caddy:2-alpine
39 restart: unless-stopped
40 ports:
41 - "80:80"
42 - "443:443"
43 volumes:
44 - ./Caddyfile:/etc/caddy/Caddyfile:ro
45 - caddy_data:/data
46 - caddy_config:/config
47 networks:
48 - assistant-net
49 depends_on:
50 - app
51
52 # Netdata: Real-time monitoring
53 # Access via Tailscale: http://TAILSCALE_IP:19999
54 netdata:
55 image: netdata/netdata
56 restart: unless-stopped
57 hostname: assistant
58 ports:
59 - '19999:19999'
60 cap_add:
61 - SYS_PTRACE
62 security_opt:
63 - apparmor:unconfined
64 volumes:
65 - netdata_config:/etc/netdata
66 - netdata_lib:/var/lib/netdata
67 - netdata_cache:/var/cache/netdata
68 - /proc:/host/proc:ro
69 - /sys:/host/sys:ro
70 - /etc/os-release:/host/etc/os-release:ro
71 - /var/run/docker.sock:/var/run/docker.sock:ro
72 env_file: .env
73 environment:
74 - NETDATA_CLAIM_URL=https://app.netdata.cloud
75 - NETDATA_DISABLE_CLOUD=1
76 networks:
77 - assistant-net
78
79volumes:
80 caddy_data:
81 caddy_config:
82 netdata_config:
83 netdata_lib:
84 netdata_cache: