No description, website, or topics provided.
PHP HTML ApacheConf Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
doc/img
src
tests/AppBundle/Controller
var
web
.dexec
.dexec-cmd
.gitignore
LICENSE
README.md
composer.json
docker-compose.yml
phpunit.xml.dist

README.md

symfony3-docker-php71

Simple Docker setup for Symfony 3+ with PHP 7.1, Apache2 and MySQL.

Docker setup

Run this project by starting docker with compose:

    docker-compose up -d    

Login with this little helper script from within the project dir (just for convenience, docker exec will too):

    ./bin/dexec

You can also login by using plain old SSH:

    # Please refer to "Security" section for password informations!
    ssh -p 2222 web@localhost

PHPStorm setup

  1. Go to the Deployment settings for this project and add an SFTP deployment

Howto add SFTP deployment

  1. Enter connection informations:

Deployment settings

  1. Configure project paths mappings:

Project paths mapping

  1. Configure exclude paths mappgins:

Exclude paths mapping

  1. Set proper deploy and sync options

Deploy and sync options

Environment

  • SSH is mapped to 2121 and 2222
  • MySQL is mapped to 33060
  • Apache is mapped to 8080

Security

MySQL

Please refere to the environment variables set within the docker-compose.yml-file.

Webserver

By default the password for the webserver user (web) is also web.

If you like to change the password, just pass the WEBSERVER_PASSWORD-environment variable with your desired password to the container within your docker-compose.yml-file:

services:
  // ...
  php:
    // ...
    environment:
      - WEBSERVER_PASSWORD=S3cureP4s5

Keep in mind that you have to use this password for your PHPStorm deployment too!