FS25-Discord-Bot/docker-compose.yml
Dennis Heinrich 24f65956ab
Some checks failed
Docker Build / build-and-push (push) Has been cancelled
Local development with webserver and demo files
2025-07-10 17:25:29 +02:00

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"