2024-12-28 11:23:40 +01:00
|
|
|
---
|
|
|
|
services:
|
2024-12-27 21:17:59 +01:00
|
|
|
bot:
|
2024-12-28 11:23:57 +01:00
|
|
|
container_name: hypixel-auc-notifier
|
2024-12-28 11:23:40 +01:00
|
|
|
build: .
|
|
|
|
restart: unless-stopped
|
2024-12-28 15:09:44 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
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
|
|
|
|
DB_USER: root
|
|
|
|
DB_PASSWORD: example
|
2024-12-28 18:39:38 +01:00
|
|
|
DATABASE: hypixel
|
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:
|
|
|
|
image: mariadb
|
|
|
|
restart: always
|
|
|
|
environment:
|
2024-12-28 18:39:38 +01:00
|
|
|
MARIADB_ROOT_PASSWORD: example # Change this to a secure password. Has to be identical to DB_PASSWORD in the bot service
|
|
|
|
MARIADB_DATABASE: hypixel
|
|
|
|
volumes:
|
|
|
|
- ./db_data:/var/lib/mysql
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2024-12-28 15:09:44 +01:00
|
|
|
|
2024-12-28 18:39:38 +01:00
|
|
|
## optional service for quick management of the database.
|
|
|
|
# adminer:
|
|
|
|
# image: adminer
|
|
|
|
# restart: always
|
|
|
|
# depends_on:
|
|
|
|
# - db
|
|
|
|
# ports:
|
|
|
|
# - 8080:8080
|