hypixel-auction-notifier/docker-compose.yml
ulysia 5c106de4c1 Switch: mariadb -> postgres
Addendum: MariaDB sucks dick with teeth
2025-01-06 18:04:47 +01:00

32 lines
791 B
YAML

---
services:
bot:
container_name: hypixel-auc-notifier
build: .
restart: unless-stopped
depends_on:
- db
env_file:
- .env
environment:
NODE_ENV: "production"
DB_HOST: db
DB_USER: postgres
DB_PASSWORD: example
DATABASE: hypixel
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./config.json:/app/dist/src/config.json
db:
image: postgres:17.2
restart: always
environment:
POSTGRES_PASSWORD: example # Change this to a secure password. Has to be identical to DB_PASSWORD in the bot service
POSTGRES_DB: hypixel
volumes:
- ./db_data:/var/lib/postgres/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro