Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Latest commit

 

History

History
53 lines (38 loc) · 1.9 KB

File metadata and controls

53 lines (38 loc) · 1.9 KB

Install this poc with Docker

Prerequisites

Install containers

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

Update HOST

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:

Usage

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.

Dev environment

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

Enjoy