Files
telemt/docker-compose.yml
T

40 lines
1023 B
YAML
Raw Permalink Normal View History

2026-02-13 21:06:06 +03:00
services:
telemt:
2026-02-27 01:53:22 +03:00
image: ghcr.io/telemt/telemt:latest
2026-04-17 19:06:18 +03:00
build:
context: .
target: prod
2026-02-13 21:06:06 +03:00
container_name: telemt
restart: unless-stopped
ports:
- "443:443"
2026-03-03 17:18:19 +03:00
- "127.0.0.1:9090:9090"
- "127.0.0.1:9091:9091"
2026-02-16 02:03:11 +03:00
# Allow caching 'proxy-secret' in read-only container
2026-04-09 12:55:38 +03:00
working_dir: /etc/telemt
2026-02-13 21:06:06 +03:00
volumes:
2026-04-09 12:55:38 +03:00
- ./config.toml:/etc/telemt/config.toml:ro
2026-02-16 02:03:11 +03:00
tmpfs:
2026-04-09 12:55:38 +03:00
- /etc/telemt:rw,mode=1777,size=4m
2026-02-13 21:06:06 +03:00
environment:
- RUST_LOG=info
2026-04-17 16:36:15 +03:00
healthcheck:
test: [ "CMD", "/app/telemt", "healthcheck", "/etc/telemt/config.toml", "--mode", "liveness" ]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
2026-02-13 21:06:06 +03:00
# Uncomment this line if you want to use host network for IPv6, but bridge is default and usually better
# network_mode: host
cap_drop:
- ALL
cap_add:
2026-04-09 12:55:38 +03:00
- NET_BIND_SERVICE
2026-02-13 21:06:06 +03:00
read_only: true
security_opt:
- no-new-privileges:true
ulimits:
nofile:
soft: 65536
2026-04-09 12:55:38 +03:00
hard: 262144