-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (40 loc) · 1.87 KB
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (40 loc) · 1.87 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
# =============================================================================
# Gelegram — Docker Compose
# =============================================================================
# Quick start:
# 1. Copy .env.example to .env and set your TELEGRAM_BOT_TOKEN
# 2. docker compose up -d
# 3. docker exec -it gelegram gemini auth (first time only)
# 4. Message your bot on Telegram — you're live!
#
# Logs: docker compose logs -f
# Stop: docker compose down
# Rebuild: docker compose up -d --build
# =============================================================================
services:
gelegram:
build: .
container_name: gelegram
restart: unless-stopped
# ── Environment ──────────────────────────────────────────────────────
# Load secrets from .env file (TELEGRAM_BOT_TOKEN, BOT_PASSWORD, etc.)
env_file:
- .env
# ── Volumes ──────────────────────────────────────────────────────────
volumes:
# Persistent workspace — memory, skills, transcripts, cron state, etc.
- gelegram-data:/data
# Gemini CLI auth credentials (persists Google OAuth tokens)
# Without this, you'd need to re-auth after every container rebuild.
- gelegram-gemini-config:/root/.gemini
# ── Logging ──────────────────────────────────────────────────────────
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
volumes:
gelegram-data:
name: gelegram-data
gelegram-gemini-config:
name: gelegram-gemini-config