-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (52 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
54 lines (52 loc) · 1.42 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
---
services:
tg-spam:
image: ghcr.io/umputun/tg-spam:master
restart: always
container_name: tg-spam
logging: &default_logging
driver: json-file
options:
max-size: "10m"
max-file: "5"
environment:
- TZ=Europe/Amsterdam
# - TELEGRAM_TOKEN=
# - TELEGRAM_GROUP=jsweekdays
# - ADMIN_GROUP=
# - OPENAI_TOKEN=
- LOGGER_ENABLED=true
- LOGGER_FILE=/srv/log/tg-spam.log
- LOGGER_MAX_SIZE=5M
- FILES_SAMPLES=/srv/data/samples
- FILES_DYNAMIC=/srv/data/dynamic
- NO_SPAM_REPLY=true
- SUPPRESS_JOIN_MESSAGE=true
- DEBUG=false
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/ping"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
- ./log:/srv/log
- ./tg-spam-samples:/srv/data/samples
- ./tg-spam-dynamic:/srv/data/dynamic
tg-spam-updater:
image: ghcr.io/umputun/tg-spam-updater:latest
hostname: tg-spam-updater
container_name: tg-spam-updater
restart: always
logging: *default_logging
environment:
- TZ=Europe/Amsterdam
volumes:
- ./tg-spam-samples:/samples
command: ["https://github.com/radio-t/tg-spam-samples.git", "/samples"]
watchtower:
image: containrrr/watchtower
logging: *default_logging
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 300