This repository has the objective of easily setup with Docker an Adianti Framework project with MySQL based on ERP Template 3
You can access the following applications after the setup:
- Adianti ERP 3: http://localhost
- PHP MyAdmin: http://localhost:8183
git clone https://github.com/luiswitz/adianti-framework-docker.git my_new_project
cd my_new_project
Setup your database credentials in docker-compose.yml and phinx.yml and run the containers
docker-compose up
Install dependencies with composer
docker-compose exec php composer install
Acces PHP MyAdmin http://localhost:8183 and create your database
Setup database with migrations
docker-compose exec php php vendor/robmorgan/phinx/bin/phinx migrate -e development
Access the application: http://localhost
To create migration Phinx was choosed. You can check the documentation on this link
To create new migrations with docker, run the following command:
docker-compose exec php php vendor/robmorgan/phinx/bin/phinx create MyNewMigration
You can add packages to your project with Composer.
To do this, run the following command:
docker-compose exec php composer require robmorgan/phinx