-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 1.01 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
# Deploy do KernelBot (app containerizada).
#
# Pré-requisitos:
# 1. Copie .env.docker.example → .env e preencha MySQL + LLM + ACL_RELOAD_BEARER_TOKEN
# 2. docker compose build
# 3. docker compose up -d
#
# MySQL: use Aiven/produção (DB_* no .env) ou staging local em paralelo:
# docker compose -f docker-compose.staging.yml up -d
# DB_HOST=host.docker.internal DB_PORT=3307 (Linux: extra_hosts abaixo)
#
# Staging local completo (app + MySQL dev):
# docker compose -f docker-compose.deploy-staging.yml up -d --build
services:
kernelbot:
build:
context: .
dockerfile: Dockerfile
image: kernelbot:latest
container_name: kernelbot
restart: unless-stopped
ports:
- "${KERNELBOT_PUBLISH_PORT:-8001}:8001"
env_file:
- .env
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:$${PORT:-8001}/health || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 45s