added definitions for db envs
This commit is contained in:
parent
be1ec59e0e
commit
a4c314ca36
2 changed files with 20 additions and 8 deletions
|
@ -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
5
env.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue