-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.15 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
services:
fast-mcp-telegram:
image: ${GHCR_IMAGE:-ghcr.io/leshchenko1979/fast-mcp-telegram}:${IMAGE_TAG:-main}
container_name: fast-mcp-telegram
env_file:
- ./.env
environment:
- SERVER_MODE=http-auth
- HOST=0.0.0.0
- PORT=8000
- DOMAIN=${DOMAIN:-your-domain.com}
volumes:
- telegram-sessions:/home/appuser/.config/fast-mcp-telegram
networks:
- traefik-public
restart: unless-stopped
mem_limit: 256m
cpus: 0.5
mem_reservation: 64m
command: python -m src.server
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:8000/health >/dev/null 2>&1 || exit 1"]
start_period: 20s
start_interval: 1s
interval: 30s
timeout: 5s
retries: 2
setup:
profiles:
- setup
image: ${GHCR_IMAGE:-ghcr.io/leshchenko1979/fast-mcp-telegram}:${IMAGE_TAG:-main}
env_file:
- ./.env
volumes:
- telegram-sessions:/home/appuser/.config/fast-mcp-telegram
stdin_open: true
tty: true
command: python -m src.cli_setup --overwrite
volumes:
telegram-sessions:
driver: local
networks:
traefik-public:
external: true