-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
231 lines (214 loc) · 6.5 KB
/
docker-compose.yml
File metadata and controls
231 lines (214 loc) · 6.5 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
version: "2"
services:
nginx:
image: umputun/nginx-le:latest
container_name: nginx
hostname: nginx
restart: always
logging: &default_logging
driver: json-file
options:
max-size: "10m"
max-file: "5"
volumes:
- ./etc/ssl:/etc/nginx/ssl
- ./nginx.conf:/etc/nginx/nginx.conf
- ./services.conf:/etc/nginx/service.conf
- ./hugo/public:/var/www
- /srv/p.umputun.com/public:/var/p.umputun.com
- ./var/stats:/var/stats
- ./var/media/:/var/media
ports:
- "80:80"
- "443:443"
environment:
- TZ=America/Chicago
- LETSENCRYPT=true
- LE_EMAIL=umputun@gmail.com
- LE_FQDN=podcast.umputun.com,remark42.umputun.com,tg-spam-uwp.umputun.com,uwp.umputun.com
depends_on:
- remark42
- stats
remark42:
image: umputun/remark42:latest
container_name: "remark42"
hostname: "remark42"
restart: always
logging: *default_logging
environment:
- MHOST
- APP_UID=1000
- USER=umputun
- SECRET=$REMARK_SECRET
- REMARK_URL=https://remark42.umputun.com
- SITE=uwp,p.umputun.com
- ADMIN_SHARED_ID=github_ef0f706a79cc24b17bbbb374cd234a691d034128
- ADMIN_SHARED_EMAIL=remark42@umputun.com
- STORE_BOLT_PATH=/srv/var/db
- BACKUP_PATH=/srv/var/backup
- IMAGE_PROXY_HTTP2HTTPS=true
- AVATAR_RESIZE=48
- LOW_SCORE=-10
- CRITICAL_SCORE=-15
- CACHE_MAX_SIZE=50000000
- CACHE_MAX_VALUE=200000
- CACHE_MAX_ITEMS=1000
- NOTIFY_TYPE=telegram,email
- NOTIFY_TELEGRAM_CHAN=uwp_comments
- NOTIFY_TELEGRAM_TOKEN
- NOTIFY_EMAIL_FROM=remark42@umputun.com
- NOTIFY_EMAIL_VERIFICATION_SUBJ=verification
- MAX_COMMENT_SIZE=2000
- ADMIN_PASSWD=$REMARK_ADMIN_PASSWD
- READONLY_AGE=700
- AUTH_EMAIL_ENABLE=true
- SMTP_HOST=smtp.mailgun.org
- SMTP_PORT=465
- SMTP_TLS=true
- SMTP_USERNAME
- SMTP_PASSWORD
# - AUTH_TWITTER_CID
# - AUTH_TWITTER_CSEC
- AUTH_GITHUB_CID
- AUTH_GITHUB_CSEC
- AUTH_GOOGLE_CID
- AUTH_GOOGLE_CSEC
- AUTH_YANDEX_CID
- AUTH_YANDEX_CSEC
- TELEGRAM_TOKEN
- AUTH_TELEGRAM=true
# - AUTH_FACEBOOK_CID
# - AUTH_FACEBOOK_CSEC
- AUTH_EMAIL_FROM=confirmation@umputun.com
- POSITIVE_SCORE=true
volumes:
- ./var/remark42:/srv/var
tg-spam:
image: umputun/tg-spam:latest
hostname: tg-spam
restart: always
container_name: tg-spam
logging: *default_logging
user: "1000:1000"
environment:
- TZ=America/Chicago
- TELEGRAM_TOKEN=${TGSPAM_TELEGRAM_TOKEN}
- TELEGRAM_GROUP=uwp_chat
- ADMIN_GROUP=200312168
- TESTING_ID=200312168
- SUPPRESS_JOIN_MESSAGE=true
- LOGGER_ENABLED=true
- LOGGER_FILE=/srv/log/tg-spam.log
- LOGGER_MAX_SIZE=5M
- FILES_SAMPLES=/srv/samples
- FILES_DYNAMIC=/srv/var
- NO_SPAM_REPLY=true
- MIN_MSG_LEN=15
- MIN_PROBABILITY=75
- MULTI_LANG=5
- META_IMAGE_ONLY=true
- META_LINKS_ONLY=true
- META_VIDEO_ONLY=true
- META_FORWARD=true
- META_KEYBOARD=true
- META_LINKS_ONLY=true
- META_AUDIO_ONLY=true
- META_GIVEAWAY=true
- META_MENTIONS_LIMIT=4
- DELETE_JOIN_MESSAGES=true
- DELETE_LEAVE_MESSAGES=true
- DUPLICATES_THRESHOLD=3
- AGGRESSIVE_CLEANUP=true
- OPENAI_TOKEN=${OPENAI_TOKEN}
- OPENAI_RETRY_COUNT=3
- OPENAI_HISTORY_SIZE=10
- OPENAI_CUSTOM_PROMPT=Any message about service offering paid services, paid subscriptions, paid content, donations, crypto wallets, paid promotion of content, paid promotion of accounts is considered as spam. Also messages offering adult content, adult services, escort services, or any other paid services are considered as spam. Messages offering free services, free content, free subscriptions, or any other free offerings are considered as spam.
- BACKUP_VER_ENABLED=true
- SERVER_ENABLED=true
- SERVER_AUTH=${TGPSPAM_SERVER_AUTH}
- DEBUG=true
volumes:
- /srv/tg-spam-samples:/srv/samples
- ./var/tg-spam/logs:/srv/log
- ./var/tg-spam/dynamic:/srv/var
command: --super=umputun
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:
- APP_UID=1000
volumes:
- /srv/tg-spam-samples:/srv/samples
command: ["https://github.com/radio-t/tg-spam-samples.git", "/srv/samples"]
stats:
build: stats
hostname: stats
container_name: stats
restart: always
logging: *default_logging
network_mode: host
volumes:
- ./var/stats:/stats
- ./var/vnstat:/var/lib/vnstat
updater:
build: updater
hostname: updater
container_name: updater
restart: always
logging: *default_logging
volumes:
- /home/umputun/.ssh/id_rsa.pub:/home/app/.ssh/id_rsa.pub
- /home/umputun/.ssh/id_rsa:/home/app/.ssh/id_rsa
feed-master:
image: umputun/feed-master:master
container_name: "feed-master"
hostname: "feed-master"
restart: always
logging: *default_logging
environment:
- DEBUG=false
- FM_DB=/srv/var/feed-master.bdb
- FM_FEED=http://feeds.rucast.net/Umputun
- TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
- TELEGRAM_SERVER=http://telegram-bot-api:8081
- TELEGRAM_CHAN=uwp_podcast
- TWI_CONSUMER_KEY
- TWI_CONSUMER_SECRET
- TWI_ACCESS_TOKEN
- TWI_ACCESS_SECRET
volumes:
- ./var:/srv/var
telegram-bot-api:
image: ghcr.io/bots-house/docker-telegram-bot-api:latest
container_name: telegram-bot-api
hostname: telegram-bot-api
command: "--dir=/var/lib/telegram-bot-api"
restart: unless-stopped
logging: *default_logging
environment:
# get these values from https://core.telegram.org/api/obtaining_api_id
- TELEGRAM_API_ID=${TELEGRAM_API_ID}
- TELEGRAM_API_HASH=${TELEGRAM_API_HASH}
volumes:
- ./var/bot-api:/var/lib/telegram-bot-api
monit:
build: monit
hostname: monit
container_name: monit
restart: always
logging: *default_logging
ports:
- "9009:9009"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
mail-server:
image: stevenolen/mailgun-smtp-server
container_name: mail-server
restart: always
logging: *default_logging
environment:
- MG_KEY
- MG_DOMAIN=mg.umputun.com