34 lines
No EOL
952 B
YAML
34 lines
No EOL
952 B
YAML
networks:
|
|
discord-bot-internal:
|
|
internal: true
|
|
discord-bot-external:
|
|
internal: false
|
|
|
|
services:
|
|
discord-bot:
|
|
build: .
|
|
container_name: discord_bot
|
|
restart: unless-stopped
|
|
networks:
|
|
- discord-bot-internal
|
|
- discord-bot-external
|
|
environment:
|
|
DISCORD_TOKEN: "${DISCORD_TOKEN}"
|
|
APPLICATION_ID: "${APPLICATION_ID}"
|
|
GUILD_ID: "${GUILD_ID}"
|
|
TYPECAST_TOKEN: "${TYPECAST_TOKEN}"
|
|
DATABASE_URL: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@$discord-db:5432/${POSTGRES_DB}?schema=public"
|
|
volumes:
|
|
- ./discord-bot/cache:/app/cache
|
|
discord-db:
|
|
container_name: discord-db
|
|
image: postgres:17
|
|
restart: unless-stopped
|
|
networks:
|
|
- discord-bot-internal
|
|
volumes:
|
|
- ./discord-bot/db:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
|
|
POSTGRES_USER: "${POSTGRES_USER}"
|
|
POSTGRES_DB: "${POSTGRES_DB}" |