initial
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
minecraft-bot:
|
||||
build: .
|
||||
image: minecraft-update-bot:latest
|
||||
container_name: minecraft-bot
|
||||
environment:
|
||||
# Reddit Configuration
|
||||
REDDIT_CLIENT_ID: ${REDDIT_CLIENT_ID}
|
||||
REDDIT_CLIENT_SECRET: ${REDDIT_CLIENT_SECRET}
|
||||
REDDIT_USER_AGENT: ${REDDIT_USER_AGENT:-MinecraftUpdateBot/1.0}
|
||||
REDDIT_USERNAME: ${REDDIT_USERNAME}
|
||||
REDDIT_PASSWORD: ${REDDIT_PASSWORD}
|
||||
# Bot Configuration
|
||||
SUBREDDIT: ${SUBREDDIT}
|
||||
RELEASE_TYPES: ${RELEASE_TYPES:-release}
|
||||
CHECK_INTERVAL: ${CHECK_INTERVAL:-3600}
|
||||
volumes:
|
||||
# Persist the database of posted versions
|
||||
- minecraft-bot-db:/app/DB
|
||||
# Optional: mount config.py for easy editing
|
||||
# - ./config.py:/app/config.py
|
||||
restart: unless-stopped
|
||||
# Optional: resource limits
|
||||
# deploy:
|
||||
# resources:
|
||||
# limits:
|
||||
# cpus: '0.5'
|
||||
# memory: 256M
|
||||
|
||||
volumes:
|
||||
minecraft-bot-db:
|
||||
driver: local
|
||||
Reference in New Issue
Block a user