added definitions for db envs

This commit is contained in:
Ulysia 2024-12-28 18:39:38 +01:00
parent be1ec59e0e
commit a4c314ca36
2 changed files with 20 additions and 8 deletions

View file

@ -13,6 +13,7 @@ services:
DB_HOST: db
DB_USER: root
DB_PASSWORD: example
DATABASE: hypixel
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
@ -23,12 +24,18 @@ services:
image: mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD: example
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
adminer:
image: adminer
restart: always
depends_on:
- db
ports:
- 8080:8080
## optional service for quick management of the database.
# adminer:
# image: adminer
# restart: always
# depends_on:
# - db
# ports:
# - 8080:8080

5
env.d.ts vendored
View file

@ -4,6 +4,11 @@ declare global {
WEBHOOK_URL: string;
WEBHOOK_NAME: string;
WEBHOOK_PROFILE_PICTURE: string;
NODE_ENV: string;
DB_HOST: string;
DB_USER: string;
DB_PASSWORD: string;
DATABASE: string;
}
}
}