-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
62 lines (58 loc) · 3.68 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
# This exmple works on my machine but obviously /home/bombg/Repos won't be on yours.
# So change /home/bombg/Repos/SassBot to wherever sassbot is located on your machine
# I.E if your local machine Sassbot is in /Example/Repos/SassBot then
# /home/bombg/Repos/SassBot/Constants.py:/opt/SassBot/Constants.py
# Becomes
# /Example/Repos/SassBot/Constants.py:/opt/SassBot/Constants.py -- Right side of the colon stays the same
# Make sure you've edited Constants, created the /secrets/token file AND generated the database before you start the image (Follow intructions Steps 1-6)
services:
sassbot:
image: ghcr.io/bombg/sassbot:latest
volumes:
- /home/bombg/Repos/SassBot/AppConstants.py:/opt/SassBot/AppConstants.py
- /home/bombg/Repos/SassBot/secrets:/opt/SassBot/secrets
- /home/bombg/Repos/SassBot/sassBot.db:/opt/SassBot/sassBot.db
- /home/bombg/Repos/SassBot/Fae/FaeIcon.png:/opt/SassBot/images/errIcon.png
- /home/bombg/Repos/SassBot/Fae/FaeErr.jpg:/opt/SassBot/images/twitErrImg.jpg
- /home/bombg/Repos/SassBot/Fae/FaeC.png:/opt/SassBot/images/avatars/calmStreamer.png
- /home/bombg/Repos/SassBot/Fae/FaeP.png:/opt/SassBot/images/avatars/pissedStreamer.png
restart: unless-stopped
# The example below is if you want to look at images nodriver has created for troubleshooting purposes
# Make sure you touch create the jpg files before you start the image or they'll be created as folders (and be useless)
#
# services:
# sassbot:
# image: ghcr.io/bombg/sassbot:latest
# volumes:
# - /home/bombg/Repos/SassBot/AppConstants.py:/opt/SassBot/AppConstants.py
# - /home/bombg/Repos/SassBot/secrets:/opt/SassBot/secrets
# - /home/bombg/Repos/SassBot/sassBot.db:/opt/SassBot/sassBot.db
# - /home/bombg/Repos/SassBot/Fae/FaeIcon.png:/opt/SassBot/images/errIcon.png
# - /home/bombg/Repos/SassBot/Fae/FaeErr.jpg:/opt/SassBot/images/twitErrImg.jpg
# - /home/bombg/Repos/SassBot/Fae/FaeC.png:/opt/SassBot/images/avatars/calmStreamer.png
# - /home/bombg/Repos/SassBot/Fae/FaeP.png:/opt/SassBot/images/avatars/pissedStreamer.png
# - /home/bombg/Repos/SassBot/Fansscreenshot.jpg:/opt/SassBot/Fansscreenshot.jpg
# - /home/bombg/Repos/SassBot/Ofscreenshot.jpg:/opt/SassBot/Ofscreenshot.jpg
# - /home/bombg/Repos/SassBot/KickScreenshot.jpg:/opt/SassBot/KickScreenshot.jpg
# restart: unless-stopped
# Yet another version that includes a restarter container to reboot the container once a day - be sure to rename `faebot-sassbot-1` to the name of your actual bot container
# services:
# sassbot:
# image: ghcr.io/bombg/sassbot:latest
# volumes:
# - /home/bombg/Repos/SassBot/AppConstants.py:/opt/SassBot/AppConstants.py
# - /home/bombg/Repos/SassBot/secrets:/opt/SassBot/secrets
# - /home/bombg/Repos/SassBot/sassBot.db:/opt/SassBot/sassBot.db
# - /home/bombg/Repos/SassBot/Fae/FaeIcon.png:/opt/SassBot/images/errIcon.png
# - /home/bombg/Repos/SassBot/Fae/FaeErr.jpg:/opt/SassBot/images/twitErrImg.jpg
# - /home/bombg/Repos/SassBot/Fae/FaeC.png:/opt/SassBot/images/avatars/calmStreamer.png
# - /home/bombg/Repos/SassBot/Fae/FaeP.png:/opt/SassBot/images/avatars/pissedStreamer.png
# - /home/bombg/Repos/SassBot/Fansscreenshot.jpg:/opt/SassBot/Fansscreenshot.jpg
# - /home/bombg/Repos/SassBot/Ofscreenshot.jpg:/opt/SassBot/Ofscreenshot.jpg
# - /home/bombg/Repos/SassBot/KickScreenshot.jpg:/opt/SassBot/KickScreenshot.jpg
# restart: unless-stopped
# restarter:
# image: docker:cli
# volumes: ["/var/run/docker.sock:/var/run/docker.sock"]
# command: ["/bin/sh", "-c", "while true; do sleep 86400; docker restart faebot-sassbot-1; done"]
# restart: unless-stopped