2024-12-28 11:23:40 +01:00
|
|
|
---
|
|
|
|
services:
|
2025-01-06 19:21:44 +01:00
|
|
|
app:
|
|
|
|
container_name: hypixel-auc-app
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.bot
|
2024-12-28 11:23:40 +01:00
|
|
|
restart: unless-stopped
|
2024-12-28 15:09:44 +01:00
|
|
|
depends_on:
|
2025-01-06 20:54:32 +01:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2024-12-28 11:23:40 +01:00
|
|
|
env_file:
|
|
|
|
- .env
|
2024-12-27 21:17:59 +01:00
|
|
|
environment:
|
|
|
|
NODE_ENV: "production"
|
2024-12-28 15:09:44 +01:00
|
|
|
DB_HOST: db
|
2025-01-06 18:04:47 +01:00
|
|
|
DB_USER: postgres
|
2024-12-28 15:09:44 +01:00
|
|
|
DB_PASSWORD: example
|
2024-12-28 11:23:40 +01:00
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2024-12-28 15:09:44 +01:00
|
|
|
- ./config.json:/app/dist/src/config.json
|
|
|
|
|
|
|
|
|
|
|
|
db:
|
2025-01-06 19:21:44 +01:00
|
|
|
container_name: hypixel-auc-db
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile.db
|
2025-01-06 20:54:32 +01:00
|
|
|
restart: unless-stopped
|
2025-01-07 19:09:08 +01:00
|
|
|
ports:
|
|
|
|
- 5432:5432
|
2024-12-28 15:09:44 +01:00
|
|
|
environment:
|
2025-01-06 18:04:47 +01:00
|
|
|
POSTGRES_PASSWORD: example # Change this to a secure password. Has to be identical to DB_PASSWORD in the bot service
|
2024-12-28 18:39:38 +01:00
|
|
|
volumes:
|
2025-01-06 18:04:47 +01:00
|
|
|
- ./db_data:/var/lib/postgres/data
|
2024-12-28 18:39:38 +01:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2025-01-06 20:54:32 +01:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "pg_isready", "-U", "postgres"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 3
|