The project called Portfolio
:
At this point, the project layout look like the following:
my-app/
├─ _doc/
│ └─ ...
├─ docker/
│ └─ apache
│ └─ config
│ └─ mysql
│ └─ nginx
│ └─ node
│ └─ php
├─ Front -> Angular/
│ └─ ...
├─ Back -> SYMFONY 4/
│ └─ ...
└─ docker-compose.yml
DataBase:
1. MySQL
2. PhpMyAdmin
Server Code:
1. PHP
2. Apache
Front End Code:
1. NGINX
Run development environment
$ docker-compose up
or run in background
$ docker-compose up -d
To down environment
$ docker-compose down
Show all container
$ docker-compose ps
Connect to container
$ docker exec -it {container_name} bash
Fix minor problem with docker images
$ docker-compose up --force-recreate
For 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
ApiDoc: http://localhost:82/swagger/index.html
- Github, Web-based version-control and collaboration platform for software developers.