hypixel-auction-notifier/docker-compose.yml

41 lines
No EOL
969 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: root
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: mariadb:11.7.1-noble-rc
restart: always
environment:
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
## optional service for quick management of the database.
# adminer:
# image: adminer
# restart: always
# depends_on:
# - db
# ports:
# - 8080:8080