Added Docker documentation.
This commit is contained in:
parent
5075310289
commit
3d2701615b
1 changed files with 40 additions and 0 deletions
40
doc/docker.md
Normal file
40
doc/docker.md
Normal file
|
@ -0,0 +1,40 @@
|
|||
# Docker
|
||||
|
||||
Run the development containers of Easy!Appointments with Docker and Docker Compose utility. Docker allows you to compose your application from microservices, without worrying about inconsistencies between development and production environments and without locking into any platform or language.
|
||||
|
||||
Make sure that you have Docker and Docker compose installed and configured in your system and execute the following command through your terminal while being in the Git clone directory:
|
||||
|
||||
`docker-compose up`
|
||||
|
||||
Then modify the root `config.php` so that it matches the following example:
|
||||
|
||||
```php
|
||||
class Config {
|
||||
// ------------------------------------------------------------------------
|
||||
// GENERAL SETTINGS
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
const BASE_URL = 'http://{DOCKER-SERVER-IP}'; // e.g. 192.168.99.100
|
||||
const LANGUAGE = 'english';
|
||||
const DEBUG_MODE = TRUE;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// DATABASE SETTINGS
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
const DB_HOST = 'database';
|
||||
const DB_NAME = 'easyappointments';
|
||||
const DB_USERNAME = 'root';
|
||||
const DB_PASSWORD = 'root';
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// GOOGLE CALENDAR SYNC
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
const GOOGLE_SYNC_FEATURE = FALSE;
|
||||
const GOOGLE_PRODUCT_NAME = '';
|
||||
const GOOGLE_CLIENT_ID = '';
|
||||
const GOOGLE_CLIENT_SECRET = '';
|
||||
const GOOGLE_API_KEY = '';
|
||||
}
|
||||
```
|
Loading…
Reference in a new issue