mirror of
https://github.com/cloudmaker97/FS25-Discord-Bot.git
synced 2025-12-06 00:18:34 +00:00
Some checks failed
Docker Build / build-and-push (push) Has been cancelled
35 lines
No EOL
847 B
YAML
35 lines
No EOL
847 B
YAML
services:
|
|
ls25bot:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: ls25bot
|
|
restart: always
|
|
volumes:
|
|
- ./config.json:/app/config.json
|
|
|
|
restart:
|
|
image: docker:cli
|
|
restart: unless-stopped
|
|
container_name: ls25bot-restart
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
entrypoint: [ "/bin/sh","-c" ]
|
|
command:
|
|
- |
|
|
echo "Restarting ls25bot container is running"
|
|
while true; do
|
|
sleep 7200 # Each 2 hours
|
|
echo "Restarting ls25bot container at $(date)"
|
|
docker restart ls25bot
|
|
done
|
|
|
|
# This is used for development purposes only
|
|
webserver:
|
|
image: nginx:alpine
|
|
container_name: ls25bot-webserver
|
|
restart: always
|
|
volumes:
|
|
- ./misc/files:/usr/share/nginx/html
|
|
ports:
|
|
- "8080:80" |