2017-01-17 01:46:59 +03:00
|
|
|
# Docker
|
|
|
|
|
2023-01-25 10:48:56 +03:00
|
|
|
Run the development containers of Easy!Appointments with Docker and Docker Compose utility. Docker allows you to compose
|
|
|
|
your application in microservices, so that you can easily get started with the local development.
|
2017-01-17 01:46:59 +03:00
|
|
|
|
2023-01-25 10:48:56 +03:00
|
|
|
Simply clone the project and run `docker compose up` to start the environment.
|
2018-11-03 17:15:20 +03:00
|
|
|
|
2023-01-25 10:48:56 +03:00
|
|
|
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
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
2020-04-08 14:35:33 +03:00
|
|
|
const BASE_URL = 'http://localhost:8000';
|
2017-01-17 01:46:59 +03:00
|
|
|
const LANGUAGE = 'english';
|
|
|
|
const DEBUG_MODE = TRUE;
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// DATABASE SETTINGS
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
2023-01-25 10:48:56 +03:00
|
|
|
const DB_HOST = 'mysql';
|
2017-01-17 01:46:59 +03:00
|
|
|
const DB_NAME = 'easyappointments';
|
2023-01-25 10:48:56 +03:00
|
|
|
const DB_USERNAME = 'easyappointments';
|
|
|
|
const DB_PASSWORD = 'secret';
|
2017-01-17 01:46:59 +03:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// GOOGLE CALENDAR SYNC
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
|
2020-04-08 14:35:33 +03:00
|
|
|
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
|
|
|
|
2023-01-25 10:48:56 +03:00
|
|
|
In the host machine the server is accessible from `http://localhost:8000` and the database from `localhost:8001`.
|
2020-04-08 14:35:33 +03:00
|
|
|
|
2023-01-25 10:48:56 +03:00
|
|
|
You can additionally access phpMyAdmin from `http://localhost:8002` and MailHog from `http://localhost:8003`.
|
2020-04-08 14:35:33 +03:00
|
|
|
|
2023-01-25 10:48:56 +03:00
|
|
|
**Attention:** This configuration is mend to make development easier. It is not intended to server as a production
|
|
|
|
environment!
|
|
|
|
|
|
|
|
A production image of Easy!Appointments is available at: https://github.com/alextselegidis/easyappointments-docker
|
2020-04-08 14:35:33 +03:00
|
|
|
|
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)
|