Docker deployment of Framework and SDH-API.
This repository deploys these containers:
- Lightweight Directory Access Protocol
- SDH Open API Initiative
- MySQL Database for Laravel
- phpMyAdmin Container
- Laravel Framework
- Laravel: 80 - 9000
- API: 8080 - 9002
- LDAP: 80 - 9005
- LDAP: 389 - 9010
- LDAP: 636 - 9011
- docker > 1.7.0
- docker-compose > 1.3.1
Alias | Command |
---|---|
Start | docker-compose up -d |
Stop | docker-compose stop |
Delete | docker-compose rm -f |
Rebuild | docker-compose build |
If you want to change port redirection or configuration, we suggest you:
- Stop
- Delete
- Build (if you have changed any file or physical configuration)
- Start
- API Configuration
Variable | Description | Example |
---|---|---|
SDH_API_HOST | URL or IP address | 127.0.0.1 or other |
SDH_API_PROTOCOL | Protocol | http or https |
SDH_API_PORT | Container Port | 9002 or other |
SDH_LDAP_HOST | LDAP URL or IP addresss | ldap://... |
SDH_LDAP_PASSWORD | Password | user_password_test |
SDH_RABBIT_HOST | Rabbit URL or IP address | amqp://... |
SDH_RABBIT_PORT | Rabbit MQ Port | 5672 or other |
Note: if you change redirection container port (ports section) you need to change SDH_API_PORT.
- Laravel Configuration
Variable | Description | Example |
---|---|---|
SDH_API_HOST | API URL or IP address | http://...:9002 or https://...:9002 |
Note: if you change SDH_API_PORT at API container, use the same port at laravel configuration.