Skip to content

datadarius/docker-sf3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

██████╗  ██████╗  ██████╗██╗  ██╗███████╗██████╗       ███████╗███████╗██████╗ 
██╔══██╗██╔═══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗      ██╔════╝██╔════╝╚════██╗
██║  ██║██║   ██║██║     █████╔╝ █████╗  ██████╔╝█████╗███████╗█████╗   █████╔╝
██║  ██║██║   ██║██║     ██╔═██╗ ██╔══╝  ██╔══██╗╚════╝╚════██║██╔══╝   ╚═══██╗
██████╔╝╚██████╔╝╚██████╗██║  ██╗███████╗██║  ██║      ███████║██║     ██████╔╝
╚═════╝  ╚═════╝  ╚═════╝╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝      ╚══════╝╚═╝     ╚═════╝ 
                                                                               

docker-sf3 - advanced LAMP setup for symfony3 development

Travis

permission-hassle free ™️ » More

Installation

git clone https://github.com/nerdpress-org/docker-sf3.git docker-sf3
cp -r docker-sf3/docker /path/to/your/symfony-project/

Please Notice

This software compilation is ment for local development purpose only.

Usage

cd /path/to/your/symfony-project/docker
./docker.sh -l

This will build and start all containers and log you into the symfony container as www-data.
» More startup options

console

Open the browser: http://[docker-host]:8080

toolbar

Development Webserver (sf_web)

PHP7 on Apache 2.4 (http2 enabled)

from the Ondřej Surý PPA running on Ubuntu:Xenial Docker Image.

Debugging

Xdebug and Blackfire.io support are included by default.
» How to configure

zsh default shell

oh-my-zsh is the default shell.

The Dockerfile can be found here: (/docker/sf_web Docker

DB (sf_db)

Official MySQL:5 Docker is used.
Use the name of the service as the database host in your connection settings:

    database_driver:   pdo_mysql
    database_host:     db
    database_port:     3306
    database_name:     sf3
    database_user:     sf3
    database_password: sf3

Its configured to be open for access from outside,
so if you prefer to use MySql Workbench on the host, use the containers IP as host.
Find the IP with: docker inspect --format '{{ .NetworkSettings.IPAddress }} {{ .Name }}' $(docker ps -q)

Otherwise use official phpmyadmin docker on http://[docker-host]:8081

Other Services

Customizing Environment

  • Locale is en_US.UTF-8
  • Timezone is set to Europe/Berlin

ToDos

  • Make docker_sf3 directly installable into a Symfony project.
  • Add more tests for the additional services.
  • Dynamically add php version to sf_web env.
  • Dynamically populate db credentials for sf3 via environment.
  • Set up names to enable service discovery.
  • Set up automated certificate creation and clarify to make it persist.
  • Create an image (e.g. on quay.io) to speed up installation.
  • Set up continous image builds. (e.g. on cve or othe source images changes)

Mailcatcher SMTP

host: mailcatcher
port: 1025

Webinterface on http://[yourhost*]:1080

About

Docker advanced LAMP setup for symfony3 development 🐳

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 98.6%
  • ApacheConf 1.4%