-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.ghcr.yml
More file actions
57 lines (54 loc) · 1.45 KB
/
Copy pathdocker-compose.ghcr.yml
File metadata and controls
57 lines (54 loc) · 1.45 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
48
49
50
51
52
53
54
55
56
57
x-app-common: &app-common
image: ${APP_IMAGE:-ghcr.io/koval01/telegram-me:latest}
pull_policy: always
ports:
- "${APP_PORT:-8000}:3000"
environment:
PORT: 3000
DISABLE_DOCS: ${DISABLE_DOCS:-0}
REDIS_URL: ${REDIS_URL:-redis://host.docker.internal:6379/0}
ENABLE_FEED: ${ENABLE_FEED:-1}
ENABLE_PREVIEWS: ${ENABLE_PREVIEWS:-1}
ENABLE_RATE_LIMIT: ${ENABLE_RATE_LIMIT:-0}
RATE_LIMIT_RPM: ${RATE_LIMIT_RPM:-120}
CACHE_MODE: ${CACHE_MODE:-normal}
PARSER_MODE: ${PARSER_MODE:-full}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/healthz"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
networks:
- app-network
security_opt:
- no-new-privileges
cap_drop:
- ALL
mem_limit: 256mb
memswap_limit: 256mb
pids_limit: 50
user: appuser
services:
app-full:
<<: *app-common
profiles: ["full"]
container_name: telegram-me-full
app-minimal:
<<: *app-common
profiles: ["minimal"]
container_name: telegram-me-minimal
environment:
PORT: 3000
DISABLE_DOCS: ${DISABLE_DOCS:-0}
REDIS_URL: ${REDIS_URL:-redis://host.docker.internal:6379/0}
ENABLE_FEED: 0
ENABLE_PREVIEWS: 0
ENABLE_RATE_LIMIT: ${ENABLE_RATE_LIMIT:-1}
RATE_LIMIT_RPM: ${RATE_LIMIT_RPM:-90}
CACHE_MODE: ${CACHE_MODE:-aggressive}
PARSER_MODE: ${PARSER_MODE:-simplified}
networks:
app-network:
driver: bridge