43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
---
|
|
services:
|
|
app:
|
|
container_name: hypixel-auc-app
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.bot
|
|
restart: unless-stopped
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
NODE_ENV: "production"
|
|
DB_HOST: db
|
|
DB_USER: postgres
|
|
DB_PASSWORD: example
|
|
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: unless-stopped
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
POSTGRES_PASSWORD: example # Change this to a secure password. Has to be identical to DB_PASSWORD in the bot service
|
|
volumes:
|
|
- ./db_data:/var/lib/postgres/data
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready", "-U", "postgres"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|