hypixel-auction-notifier/docker-compose.yml

39 lines
935 B
YAML

---
services:
app:
container_name: hypixel-auc-app
build:
context: .
dockerfile: Dockerfile.bot
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:
container_name: hypixel-auc-db
build:
context: .
dockerfile: Dockerfile.db
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
ports:
- 5432:5432
volumes:
- ./db_data:/var/lib/postgres/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro