Skip to content

About

Basic config for running a flow/neos distribution with docker

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

Dockerflow helps you developing Flow Framework and Neos CMS projects

DockerFlow creates the necessary Docker containers (webserver, database, php, mail, redis, elasticsearch, couchdb) to run your Flow Framework or Neos CMS project. The package provides a wrapper script in bin/dockerflow which simplifies the handling of docker and does all the configuration necessary.

We created this package to make development on Flow Framework and Neos CMS projects easier and to create a simple reusable package which can easily be maintained and serves well for the standard project.

Development will continue further as the package is already reused in several projects. Contributions and feedback are very welcome.

Install docker

https://docs.docker.com/installation/ (tested with docker v1.9)

Install docker-compose

We use docker-compose to do all the automatic configuration:

http://docs.docker.com/compose/install/ (tested with docker-compose v1.5)

The repository contains a Dockerfile which will automatically be built in the docker hub after each change and used by docker-compose to build the necessary containers.

On a Mac or Windows install boot2docker

http://boot2docker.io

You will not have a performance as good as on linux but it's workable. Checkout the boot2docker support branch of dockerflow for a Vagrantfile which builds a boot2docker instance with working NFS shared. This makes it much faster (still not as fast as on linux).

Install dockerflow into your distribution

Add shel/dockerflow as dev dependency in your composer, using the latest stable release is highly recommended.

Example:

composer require --dev shel/dockerflow 3.0.*

Run dockerflow

bin/dockerflow up -d

The command will echo the url with which you can access your project. Add the hostname then to your /etc/hosts and set the ip to your docker host (default for linux is 0.0.0.0) or your boot2docker ip. You can also use any subdomain with *.hostname and it will point to the same server. What you need to do is to add exact subdomain name to your /etc/hosts.

The parameter -d will keep it running in the background until you run:

bin/dockerflow stop

The default database configuration for your Settings.yaml is: