Docker compose for symfony + mysql + angular project
This is a docker composed project that can be used to quickly start a SF4 Angular 6 Project. PS:
- The ports used in the docker-compose.yml maybe not the ones you would love to setup expecially the NGINX on port 81.
- For developping on Angular I prefer to ng-serve on my machine. It is perfectly fine if you want to add another container based on node and run your dev on it. I may push another version with that.
- It's my first time doing such contribution to the github community, so feel free to interact in any way you like.
DataBase:
1. MySQL
2. PhpMyAdmin
Server Code:
1. PHP
2. Apache
Front End Code:
1. NGINX
Run development environment
$ docker-compose upor run in background
$ docker-compose up -dTo down environment
$ docker-compose downShow all container
$ docker-compose psConnect to container
$ docker exec -it {container_name} bashFix minor problem with docker images
$ docker-compose up --force-recreateFor correct work with angular app you must fix package.json
"scripts": {
"ng": "ng",
"start": "ng serve --host 0.0.0.0",
....
Symfony: http://localhost:82
Angular: http://localhost:4200
Phpmyadmin: http://localhost:8080