docker directory within the Github repository is an example of deploying
Jackalope using Docker containers and the
This example is not configured for HTTPS traffic - only HTTP over port 80. A production deployment should be configured with a certificate to encrypt traffic using TLS.
docker-compose will start three containers (
web - the
application - and
mysql) on the host. It will also create a volume attached
mysql container to persist the database between container tear-downs
(but be warned: if the volume is deleted the database will be lost!).
In your shell/Terminal,
cd into the
docker directory before continuing.
Connect to a Docker Host¶
$ eval $(docker-machine env yourhost)
Docker Environment Variables¶
Set the following environment variables within your shell/Terminal:
Build and Run the Containers¶
$ docker-compose build $ docker-compose up -d
You will be able to access the application at the IP address of the Docker host.
You can use
ngrok to create a secure tunnel to the Docker host
and expose it on the public internet to test with Slack. See
Testing with ngrok for more details.