MaketRandevu/docs/docker.md

51 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2017-01-17 01:46:59 +03:00
# Docker
Run the development containers of Easy!Appointments with Docker and Docker Compose utility. Docker allows you to compose
your application from micro-services, without worrying about inconsistencies between development and production
environments and without locking into any platform or language.
2017-01-17 01:46:59 +03:00
Enter the `docker` directory and run `docker-compose up` to start the environment.
You will need modify the root `config.php` so that it matches the following example:
2017-01-17 01:46:59 +03:00
```php
class Config {
// ------------------------------------------------------------------------
// GENERAL SETTINGS
// ------------------------------------------------------------------------
const BASE_URL = 'http://localhost:8000';
2017-01-17 01:46:59 +03:00
const LANGUAGE = 'english';
const DEBUG_MODE = TRUE;
// ------------------------------------------------------------------------
// DATABASE SETTINGS
// ------------------------------------------------------------------------
const DB_HOST = 'easyappointments-database:3306';
2017-01-17 01:46:59 +03:00
const DB_NAME = 'easyappointments';
const DB_USERNAME = 'root';
const DB_PASSWORD = 'root';
2017-01-17 01:46:59 +03:00
// ------------------------------------------------------------------------
// GOOGLE CALENDAR SYNC
// ------------------------------------------------------------------------
const GOOGLE_SYNC_FEATURE = FALSE; // You can optionally enable the Google Sync feature.
2017-01-17 01:46:59 +03:00
const GOOGLE_PRODUCT_NAME = '';
const GOOGLE_CLIENT_ID = '';
const GOOGLE_CLIENT_SECRET = '';
const GOOGLE_API_KEY = '';
}
```
2017-09-08 15:22:47 +03:00
In the host machine the server is accessible from `http://localhost:8000` and the database from `localhost:8001`.
You can remove the docker containers with `docker rm easyappointments-server easyappointments-database`.
You can remove the server image with `docker rmi easyappointments-server:v1`.
2022-02-24 17:44:30 +03:00
*This document applies to Easy!Appointments v1.4.3.*
2017-09-08 15:22:47 +03:00
2018-02-28 16:44:18 +03:00
[Back](readme.md)