PHP Dockerized for PhalconPHP (SavvySoftWorks edition)

What's inside

Requirements

Running

Set up a Docker Machine and then run:

Make sure that nothing is using port 80 first

netstat -an | grep "\.80" | grep LISTEN
$ docker-compose build
$ docker-compose create
$ docker-compose start

If you receive an error about networks or containers that don't exist do this Wait until MySQL init process done. Ready for start up. happens before CTRL-C.

$ docker-compose up
$ docker-compose stop
$ docker-compose create
$ docker-compose start

From then on you can just run

docker-compose start

Or

$ docker-compose stop

Deploy

Automated

There is an automated deploy hook that can be copied or sym-linked to the deploy repo in ./bin/hooks/post-receive.

Manual

  • Push your changes to the deployment remote
  • SSH to the server and naviate to the flexcore-enterprise directory
  • Navigate to application/deploy
  • Pull from local repo with git pull
  • run $sudo docker-compose build deploy && sudo docker-compose create deploy && sudo docker-compose start deploy