12 lines
475 B
YAML
12 lines
475 B
YAML
services:
|
|
bot:
|
|
image: golang:1.25
|
|
working_dir: /app
|
|
volumes:
|
|
- ./:/app
|
|
command: sh -c "git pull && if [ ! -f .env ]; then echo \".env file not found! Please create one based on .env.example and set your DISCORD_BOT_TOKEN.\"; exit 1; fi && go mod tidy && go run ."
|
|
env_file:
|
|
- .env
|
|
# Optional: Set Kuma monitoring variables in .env file:
|
|
# KUMA_PUSH_URL=https://your-uptime-kuma-instance.com/api/push/xxxxx
|
|
# KUMA_PUSH_INTERVAL=60 |