-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
270 lines (254 loc) · 7.27 KB
/
docker-compose.yml
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
version: '3.9'
services:
## Nitter
tailscale-nitter:
hostname: nitter
image: tailscale/tailscale
environment:
- TS_AUTH_KEY=${TS_AUTHKEY}
- TS_USERSPACE=true
- TS_STATE_DIR=/var/lib/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_PERMIT_CERT_UID=caddy
volumes:
- nittervarlib:/var/lib/tailscale
- nittervarrun:/var/run/tailscale
nitter:
hostname: nitter-backend
image: zedeus/nitter:latest
volumes:
- './nitter/nitter.conf:/src/nitter.conf:ro'
links:
- redis
depends_on:
redis:
condition: service_healthy
caddy-nitter:
image: public.ecr.aws/docker/library/caddy:2.7
volumes:
- ./caddy/nitter.conf:/etc/caddy/Caddyfile:ro
- nittervarrun:/var/run/tailscale:ro
network_mode: 'service:tailscale-nitter'
## Teddit
tailscale-teddit:
hostname: teddit
image: tailscale/tailscale
environment:
- TS_AUTH_KEY=${TS_AUTHKEY}
- TS_USERSPACE=true
- TS_STATE_DIR=/var/lib/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_PERMIT_CERT_UID=caddy
volumes:
- tedditvarlib:/var/lib/tailscale
- tedditvarrun:/var/run/tailscale
teddit:
hostname: teddit-backend
image: teddit/teddit:latest
environment:
- DOMAIN=teddit.${TAILNET}
- USE_HELMET=true
- USE_HELMET_HSTS=true
- TRUST_PROXY=true
- REDIS_HOST=redis
- USE_COMPRESSION=false
- NONSSL_PORT=9090
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:9090/about"]
caddy-teddit:
image: public.ecr.aws/docker/library/caddy:2.7
volumes:
- ./caddy/teddit.conf:/etc/caddy/Caddyfile:ro
- tedditvarrun:/var/run/tailscale:ro
network_mode: 'service:tailscale-teddit'
## Imgin
tailscale-imgin:
hostname: imgin
image: tailscale/tailscale
environment:
- TS_AUTH_KEY=${TS_AUTHKEY}
- TS_USERSPACE=true
- TS_STATE_DIR=/var/lib/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_PERMIT_CERT_UID=caddy
volumes:
- imginvarlib:/var/lib/tailscale
- imginvarrun:/var/run/tailscale
imgin:
hostname: imgin-backend
build:
context: ./imgin/
caddy-imgin:
image: public.ecr.aws/docker/library/caddy:2.7
volumes:
- ./caddy/imgin.conf:/etc/caddy/Caddyfile:ro
- imginvarrun:/var/run/tailscale:ro
network_mode: 'service:tailscale-imgin'
## Scribe
tailscale-scribe:
hostname: scribe
image: tailscale/tailscale
environment:
- TS_AUTH_KEY=${TS_AUTHKEY}
- TS_USERSPACE=true
- TS_STATE_DIR=/var/lib/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_PERMIT_CERT_UID=caddy
volumes:
- scribevarlib:/var/lib/tailscale
- scribevarrun:/var/run/tailscale
scribe:
hostname: scribe-backend
build:
context: ./scribe/
environment:
- SCRIBE_PORT=8084
- SCRIBE_HOST=0.0.0.0
caddy-scribe:
image: public.ecr.aws/docker/library/caddy:2.7
volumes:
- ./caddy/scribe.conf:/etc/caddy/Caddyfile:ro
- scribevarrun:/var/run/tailscale:ro
network_mode: 'service:tailscale-scribe'
## Searxng
tailscale-searxng:
hostname: searxng
image: tailscale/tailscale
environment:
- TS_AUTH_KEY=${TS_AUTHKEY}
- TS_USERSPACE=true
- TS_STATE_DIR=/var/lib/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_PERMIT_CERT_UID=caddy
volumes:
- searxngvarlib:/var/lib/tailscale
- searxngvarrun:/var/run/tailscale
searxng:
hostname: searxng-backend
image: searxng/searxng
environment:
- BASE_URL=https://search.${TAILNET}
- SEARXNG_SECRET=${HMAC_KEY}
- INSTANCE_NAME=searxng
- BIND_ADDRESS=0.0.0.0:8086
- SEARXNG_REDIS_URL=redis://@redis:6379/0
volumes:
- ./searxng/settings.yml:/usr/local/searxng/searx/settings.yml:ro
caddy-searxng:
image: public.ecr.aws/docker/library/caddy:2.7
volumes:
- ./caddy/searxng.conf:/etc/caddy/Caddyfile:ro
- searxngvarrun:/var/run/tailscale:ro
network_mode: 'service:tailscale-searxng'
## Invidious
tailscale-invidious:
hostname: invidious
image: tailscale/tailscale
environment:
- TS_AUTH_KEY=${TS_AUTHKEY}
- TS_USERSPACE=true
- TS_STATE_DIR=/var/lib/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_PERMIT_CERT_UID=caddy
volumes:
- invidiousvarlib:/var/lib/tailscale
- invidiousvarrun:/var/run/tailscale
invidious:
hostname: invidious-backend
image: quay.io/invidious/invidious:latest
environment:
# Please read the following file for a comprehensive list of all available
# configuration options and their associated syntax:
# https://github.com/iv-org/invidious/blob/master/config/config.example.yml
INVIDIOUS_CONFIG: |
db:
dbname: ${POSTGRES_DB}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASSWORD}
host: postgres
port: 5432
check_tables: true
domain: invidious.${TAILNET}
https_only: true
external_port: 443
use_quic: true
popular_enabled: false
registration_enabled: false
channel_threads: 2
feed_threads: 2
full_refresh: false
admins: ["admin"]
channel_refresh_interval: 15m
statistics_enabled: false
hmac_key: ${HMAC_KEY}
depends_on:
postgres:
condition: service_healthy
caddy-invidious:
image: public.ecr.aws/docker/library/caddy:2.7
volumes:
- ./caddy/invidious.conf:/etc/caddy/Caddyfile:ro
- invidiousvarrun:/var/run/tailscale:ro
network_mode: 'service:tailscale-invidious'
##Support Services
redis:
image: public.ecr.aws/docker/library/redis:7
command: redis-server --save 60 1 --loglevel warning
volumes:
- redis:/data
healthcheck:
test: redis-cli ping
postgres:
container_name: postgres
image: public.ecr.aws/docker/library/postgres:14
volumes:
- postgres:/var/lib/postgresql/data
- ./invidious/config/sql:/config/sql
- ./invidious/docker/init-invidious-db.sh:/docker-entrypoint-initdb.d/init-invidious-db.sh
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
## Router
tailscale-router:
hostname: router
image: tailscale/tailscale
environment:
- TS_AUTH_KEY=${TS_AUTHKEY}
- TS_USERSPACE=true
- TS_STATE_DIR=/var/lib/tailscale
- TS_SOCKET=/var/run/tailscale/tailscaled.sock
- TS_EXTRA_ARGS=--advertise-exit-node
volumes:
- routervarlib:/var/lib/tailscale
- routervarrun:/var/run/tailscale
volumes:
#nitter volumes
nittervarlib:
nittervarrun:
#teddit volumes
tedditvarlib:
tedditvarrun:
#imgin volumes
imginvarlib:
imginvarrun:
#scribe volumes
scribevarlib:
scribevarrun:
#searxng volumes
searxngvarlib:
searxngvarrun:
#searxng volumes
invidiousvarlib:
invidiousvarrun:
#support volumes
redis:
postgres:
#router volumes
routervarlib:
routervarrun: