- Docker Engine
- Docker Compose
- Docker Machine (Mac and Windows only)
Set up a Docker Machine and then run:
- Install Docker for macOS
- Navigate to the project folder and setup the containers
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
There is an automated deploy hook that can be copied or sym-linked to the deploy repo in ./bin/hooks/post-receive
.
- 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