-
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) · 983 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 983 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
services:
bot:
build:
context: .
args:
GIT_SHA: ${GIT_SHA:-dev}
image: ic-data-bot:local
env_file: .env
# Port santé NON publié : le bot est sortant (Gateway Discord) et le
# healthcheck Docker interroge localhost:8080 à l'intérieur du conteneur.
# Aucune exposition réseau nécessaire (pas de route Traefik).
# Index code vectoriel (lecture seule) pour search_code côté bot interne aussi
# (CODE_INDEX_HOST_DIR sur l'hôte → /opt/ci ; cf. .env).
volumes:
- clone:/data/data-platform
- state:/var/lib/ic-data-bot
- ${CODE_INDEX_HOST_DIR:-./code-index}:/opt/ci:ro
restart: unless-stopped
mem_limit: 1g
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 40s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
volumes:
clone:
state: