This repo was originally developed as a test application for Blimp -- a development environment that runs your containers in the cloud, while keeping the exact same configuration and workflow as Docker Compose.
It contains examples of several useful Docker Compose patterns, such as Data Containers.
This repo works with docker-compose up
as well without any modifications.
git clone https://github.com/kelda/magda
cd magda
# Install the Blimp CLI
curl -fsSL 'https://kelda.io/get-blimp.sh' | sh
# Create an account
blimp login
blimp up
Or run docker-compose up
to run it locally.
Both commands boot the docker-compose.yml
, and sets up the declared volumes
and localhost tunnels.
Wait for all the containers to boot. Note that you may see some errors from the indexer and registry-api service, but that's fine.
- View the Magda homepage at localhost:8080.
- View the bug by searching for "Australia". You should see a Syntax Error.
- Fix the bug by changing
this_value_is_wrong
on line 104 ofweb-server/src/index.js
tov0
. Once you save, your change will get synced into the container by a host volume. Nodemon will then notice the file change, and restart your code. - Confirm the fix worked by refreshing the search.
- This example repo was adapted from code from the official Magda project.