1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

Updated Readme with Docker

This commit is contained in:
robrotheram 2019-10-07 23:48:28 +01:00
parent 6a87b1d262
commit 76d098717e

View File

@ -23,6 +23,14 @@
* `api_key = the_api_key_printed_to_the_console_after_starting_the_server` * `api_key = the_api_key_printed_to_the_console_after_starting_the_server`
* Open [http://localhost:3000](http://localhost:3000) in your browser * Open [http://localhost:3000](http://localhost:3000) in your browser
## Docker
* Edit the docker-compose file and change passwords for the DB
* Build the container `docker-compose build`
* Start the application `docker-compose up -d`
* To get the api key look in the logs `docker-compose logs | grep "API key"`
* The application should now be running on `hostname:3000`
### User Accounts ### User Accounts
* When starting wakapi for the first time, a default user _**admin**_ with password _**admin**_ is created. The corresponding API key is printed to the console. * When starting wakapi for the first time, a default user _**admin**_ with password _**admin**_ is created. The corresponding API key is printed to the console.
* Additional users, at the moment, can be added only via SQL statements on your database, like this: * Additional users, at the moment, can be added only via SQL statements on your database, like this: