killbill-cloud icon indicating copy to clipboard operation
killbill-cloud copied to clipboard

Kaui: change the default username/password

Open siddhantprateek opened this issue 1 year ago • 1 comments

Currently, the default username and password for the Kaui are set as admin/password. How to configure/modify the password, when self-hosting using docker compose.

siddhantprateek avatar Sep 24 '24 10:09 siddhantprateek

hello @siddhantprateek , it's a docker-compose file example :

volumes:
  db:
services:
  killbill:
    image: killbill/killbill:0.24.15
    ports:
      - "8080:8080"
      - "8000:8000"
      - "12345:12345"
    environment:
      - KB_ADMIN_PASSWORD=<your-password>
      - KILLBILL_DAO_URL=jdbc:mysql://db:3306/killbill
      - KILLBILL_DAO_USER=root
      - KILLBILL_DAO_PASSWORD=killbill
    depends_on:
      - db
    volumes:
      - ./shiro.ini:/var/lib/killbill/config/shiro.ini #your path
  kaui:
    image: killbill/kaui:3.0.20
    ports:
      - "9090:8080"
    environment:
      - KAUI_CONFIG_DAO_URL=jdbc:mysql://db:3306/kaui
      - KAUI_CONFIG_DAO_USER=root
      - KAUI_CONFIG_DAO_PASSWORD=killbill
      - KAUI_KILLBILL_URL=http://killbill:8080
    depends_on:
      - killbill
      - db

  db:
    image: killbill/mariadb:0.24
    volumes:
      - type: volume
        source: db
        target: /var/lib/mysql
    expose:
      - "3306"
    ports:
      - "3306:3306"
    environment:
      - MYSQL_ROOT_PASSWORD=killbill

and you need to create a shiro.ini file with this :

[users]
<your-user> = $KB_ADMIN_PASSWORD, root

[roles]
root = *:*

sdjelassimoussa avatar Aug 09 '25 16:08 sdjelassimoussa