- Docker v18+ / Docker-compose v1.23+ / Manage Docker as a non-root user
- Make command: Under linux
sudo apt install build-essential
or for windows users - Git
Before use the docker version, check that ports 80/8080/443 are available. If an Apache / Nginx local server, another docker container are active, they can block access to these ports.
git clone git@github.com:jgauthi/poc_symfony3_fosrestbundle.git
cd poc_symfony3_fosrestbundle
make install
# (optional) You can copy .env to .env.local and edit configuration
Finally, install database.
make db-migrate
make db-fixtures # Optional
This stack install Traefik to work, you can use this reverse-proxy. In this case, you have to associate Traefik hosts on your host file.
# poc sf3 docker
127.0.0.1 platform.docker pma.docker maildev.docker
You can connect on url application:
Launch docker containers: make up
, or stop with make stop
, you can get command list with make help
.
You can simulate a server-dump like Symfony4 version on Dev Env with this command: make server-dump
.
If you use dev docker file (default configuration), you have additional tools:
- You can access to mysql on localhost:33060 (for PhpStorm / Mysql Workbench).
- You can use mysql command line without indicate user/pass:
- Standard request:
docker-compose exec db mysql symfony -e "show tables;"
- Dump:
docker-compose exec db mysqldump symfony > export.sql
- Standard request:
Enjoy