Initial push

This commit is contained in:
2025-03-31 20:07:57 +02:00
commit 581c6a074b
28 changed files with 2323 additions and 0 deletions

26
docker-compose.yml Normal file
View File

@@ -0,0 +1,26 @@
version: '3.8'
services:
cat-bot:
build:
context: .
dockerfile: Dockerfile
container_name: discord-cat-bot
restart: unless-stopped
user: "${UID:-1000}:${GID:-1000}"
volumes:
# Mount the audio directory so you can add/change sound files without rebuilding
- ./src/audio:/usr/src/app/dist/audio
# Mount the data directory for persistent settings
- ./data:/usr/src/app/data
# Mount the .env file for configuration
- ./.env:/usr/src/app/.env
environment:
- NODE_ENV=production
- AUDIO_DIR=/usr/src/app/dist/audio
# Simple healthcheck to ensure the container is running properly
healthcheck:
test: ["CMD", "node", "-e", "console.log('Health check')"]
interval: 60s
timeout: 10s
retries: 3