-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-everything.sh
executable file
·41 lines (35 loc) · 1.18 KB
/
run-everything.sh
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
#!/bin/sh
# Create network if not exists
docker network inspect common >/dev/null 2>&1 || docker network create common
# Make sure the DB exists so the container can bind it.
touch feeds.db
# Start the app server if it exists (nop if already running), otherwise create it
docker start rsn-app || docker run -d \
-v $PWD/feeds.db:/app/feeds.db \
--restart unless-stopped \
--network common \
--name rsn-app \
rsn-app
# Then the twitch bot
docker start twitch-bot || docker run -d \
-v $PWD/Bot/token-master.json:/app/token-master.json \
-v $PWD/Bot/token-bot.json:/app/token-bot.json \
--restart unless-stopped \
--network common \
--name twitch-bot \
twitch-bot
# And the TTS server.
docker start twitch-tts || docker run -d -p 5000:5000 \
-e MODEL_DOWNLOAD_LINK=https://huggingface.co/rhasspy/piper-voices/resolve/v1.0.0/en/en_US/lessac/high/en_US-lessac-high.onnx\?download=true \
--restart unless-stopped \
--network common \
--name twitch-tts \
artibex/piper-http
# And finally the NGINX proxy
docker start nginx || docker run -d -p 443:443 \
-v $PWD/NGINX:/etc/nginx/ \
-v $PWD/Site:/usr/share/nginx/html \
--restart unless-stopped \
--network common \
--name nginx \
nginx