-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
139 lines (133 loc) · 4.2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
139 lines (133 loc) · 4.2 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
services:
# ---------------------------------------------------------------------------
# SurrealDB - Document/graph database
# ---------------------------------------------------------------------------
surrealdb:
image: surrealdb/surrealdb:v2.6
command: start --user root --pass root memory
ports:
- "8000:8000"
environment:
SURREAL_LOG: info
healthcheck:
test: ["CMD", "surreal", "is-ready", "--endpoint", "http://localhost:8000"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
# ---------------------------------------------------------------------------
# Gateway - AI inference gateway (core service)
# ---------------------------------------------------------------------------
gateway:
build:
context: .
dockerfile: Dockerfile
args:
BINARY: talon-gateway
ports:
- "8080:8080"
depends_on:
surrealdb:
condition: service_healthy
environment:
ACTON_SURREALDB__URL: ws://surrealdb:8000
ACTON_SURREALDB__USERNAME: root
ACTON_SURREALDB__PASSWORD: root
RUST_LOG: info,talon_gateway=debug
restart: unless-stopped
# ---------------------------------------------------------------------------
# Web - HTTP/WebSocket channel
# ---------------------------------------------------------------------------
web:
build:
context: .
dockerfile: Dockerfile
args:
BINARY: talon-web
ports:
- "8081:8081"
depends_on:
- gateway
environment:
TALON_GATEWAY_URL: http://gateway:8080
TALON_TENANT_ID: default
RUST_LOG: info,talon_web=debug
restart: unless-stopped
# ---------------------------------------------------------------------------
# Admin - Dashboard
# ---------------------------------------------------------------------------
admin:
build:
context: .
dockerfile: Dockerfile
args:
BINARY: talon-admin
ports:
- "8082:8082"
depends_on:
- gateway
environment:
TALON_GATEWAY_URL: http://gateway:8080
RUST_LOG: info,talon_admin=debug
restart: unless-stopped
# ---------------------------------------------------------------------------
# Telegram channel (requires API token)
# Enable with: docker compose --profile telegram up
# ---------------------------------------------------------------------------
# telegram:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# BINARY: talon-telegram
# profiles:
# - telegram
# depends_on:
# - gateway
# environment:
# TELOXIDE_TOKEN: ${TELOXIDE_TOKEN}
# TALON_GATEWAY_URL: http://gateway:8080
# TALON_TENANT_ID: ${TALON_TELEGRAM_TENANT_ID:-default}
# RUST_LOG: info,talon_telegram=debug
# restart: unless-stopped
# ---------------------------------------------------------------------------
# Discord channel (requires bot token)
# Enable with: docker compose --profile discord up
# ---------------------------------------------------------------------------
# discord:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# BINARY: talon-discord
# profiles:
# - discord
# depends_on:
# - gateway
# environment:
# DISCORD_TOKEN: ${DISCORD_TOKEN}
# TALON_GATEWAY_URL: http://gateway:8080
# TALON_TENANT_ID: ${TALON_DISCORD_TENANT_ID:-default}
# RUST_LOG: info,talon_discord=debug
# restart: unless-stopped
# ---------------------------------------------------------------------------
# Slack channel (requires bot + app tokens)
# Enable with: docker compose --profile slack up
# ---------------------------------------------------------------------------
# slack:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# BINARY: talon-slack
# profiles:
# - slack
# depends_on:
# - gateway
# environment:
# SLACK_BOT_TOKEN: ${SLACK_BOT_TOKEN}
# SLACK_APP_TOKEN: ${SLACK_APP_TOKEN}
# TALON_GATEWAY_URL: http://gateway:8080
# TALON_TENANT_ID: ${TALON_SLACK_TENANT_ID:-default}
# RUST_LOG: info,talon_slack=debug
# restart: unless-stopped