diff --git a/docker-compose.yml b/docker-compose.yml index 6159d4e..5b41fa3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file +## optional service for quick management of the database. +# adminer: +# image: adminer +# restart: always +# depends_on: +# - db +# ports: +# - 8080:8080 \ No newline at end of file diff --git a/env.d.ts b/env.d.ts index e1914a0..24a8995 100644 --- a/env.d.ts +++ b/env.d.ts @@ -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; } } }