A set of docker-compose files suitable for starting a scalable Phalcon project.
One of the goals is to ensure that the docker-compose file(s) used in production are used as much as possible in development, in contrast to using separate files with a lot of similar information.
The majority of the docs assume all services are running from the Full Dev Stack. This makes getting started as a develop easier. If you are supporting a production its expected you'll know when to replace your connection with the Dev Stack info contained here.
docker-compose \
-f docker-compose.yml \
-f docker-compose.override.yml \
-f docker-compose.web.yml \
-f docker-compose.postgres.yml \
-f docker-compose.devtools.yml \
up
docker-compose up
Note: This will use the default docker-compose.yml
and docker-compose.override.yml
This is useful if you are developing against an existing database.
docker-compose \
-f docker-compose.yml \
-f docker-compose.override.yml \
-f docker-compose.web.yml \
-f docker-compose.devtools.yml \
up
This is useful if you already have logging and DB admin tools running.
docker-compose \
-f docker-compose.yml \
-f docker-compose.override.yml \
-f docker-compose.web.yml \
up
Defines the core image used for to provide a Phalcon PHP7.1-FPM container.
Settings for the core Phalcon PHP7.1-FPM container. You may want to tweak this
Defines an Nginx proxy container with a link to the PHP container.
Defines a PostgreSQL container and corresponding links in PHP and Adminer
Defines Adminer and Logspout containers
Runs on port 9000 internally.
It does not expose any ports.
it's connected to via the php
link.
Host port of 8880 This provides proxied access to the PHP-FPM container. The Phalcon Vokuro demo app is installed to get developers up and running.
Runs on port 9000 internally.
It does not expose any ports unless you remove the comments from the docker-compose file..
it's connected to via the postgres
link.
A great database access tool to let you see your local and remote database.
The Phalcon Webtools
LogSpout is the easiest way to aggregate Docker STDIN and STDOUT output for viewing or sending to some place like Papertrail. The default config provide here exposes the local docker logs via HTTP.