Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
85 lines (55 sloc) 2.12 KB

Koop Docker for Open FDA

Application using Koop and Koop-FDA with Docker.

Setting up Docker


Grab docker, docker-machine, and docker-compose.

curl -L > docker
curl -L > docker-machine
curl -L`uname -s`-`uname -m` > docker-compose

chmod +x docker*
mv docker* /usr/local/bin/
docker-machine create --driver virtualbox dev

Evaluate the docker environment variables for your shell.

eval "$(docker-machine env dev)"

Setting up Koop and PostGIS

Change directory to koop-docker

cd koop-docker

Editing environmentalv variables

Copy docker-compose.yml.example to docker-compose.yml

cp docker-compose.yml.example docker-compose.yml

Edit the docker-compose.yml file and add in your API Key


Start up the PostGIS container using docker-compose.

docker-compose up -d postgis

Start the koop server.

docker-compose up --no-deps koopPG

You can test that everything's working fine with a simple curl. Or checkout what you can do with the FDA provider

curl -XGET ''

Note: If this doesn't work, check to address of your Docker host and take the IP address from the DOCKER_HOST env variable

docker-machine env                                                                                                                                          [11:25:24]
export DOCKER_CERT_PATH="/Users/dev/.docker/machine/machines/dev"
export DOCKER_HOST=tcp://

# Run this command to configure your shell: eval "$(docker-machine env)"


Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.