Admin Account Creation
After you deploy your server, the first user to register becomes the administrator, with power to set other users as administrators.
In case your server has no administrators, you can create the first admin account by defining the environment variables ADMIN_PASS and ADMIN_EMAIL once.
1
export ROOT_URL=http://your-host-name.com-as-accessed-from-internet:3000/
2
export MONGO_URL=mongodb://localhost:27017/rocketchat
3
export PORT=3000
4
export ADMIN_USERNAME=admin
5
export ADMIN_PASS=supersecret
6
export ADMIN_EMAIL=[email protected]
7
8
node main.js
Copied!
Installing with the docker compose file, you can also specify the admin user and password directly.
1
environment:
2
- PORT=3000
3
- ROOT_URL=http://localhost:3000
4
- MONGO_URL=mongodb://mongo:27017/rocketchat
5
- MONGO_OPLOG_URL=mongodb://mongo:27017/local
6
- ADMIN_USERNAME=admin
7
- ADMIN_NAME=Admin
9
- ADMIN_PASS=supersecret
10
- OVERWRITE_SETTING_Show_Setup_Wizard=completed
11
- REG_TOKEN=${REG_TOKEN}
12
# - MAIL_URL=smtp://smtp.emai
Copied!
Export as PDF
Copy link