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

5
env.d.ts vendored
View file

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