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