- Introduced Dockerfile for building the bot application using Go. - Added .dockerignore to exclude unnecessary files from the Docker context. - Updated docker-compose.yml to define the bot service and its dependencies, including environment variables for database and Lavalink configuration. - Modified internal configuration to streamline environment variable handling.
22 lines
482 B
YAML
22 lines
482 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
bot:
|
|
build: .
|
|
container_name: velox-bot
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
DB_HOST: postgres://velox:velox_pwd@db:5432/velox?sslmode=disable
|
|
LAVALINK_HOST: ${LAVALINK_HOST:-ws://lavalink:2333}
|
|
LAVALINK_PASSWORD: ${LAVALINK_PASSWORD:-youshallnotpass}
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
networks:
|
|
- default
|
|
- lavalink
|
|
|
|
networks:
|
|
lavalink:
|
|
external: true |