32 lines
791 B
YAML
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
|