foundationdb/packaging/docker/samples/golang
Pierre Zemb d9d2012994
Add a Golang sample using docker-compose
2019-12-14 16:03:12 +01:00
..
app Add a Golang sample using docker-compose 2019-12-14 16:03:12 +01:00
.env Add a Golang sample using docker-compose 2019-12-14 16:03:12 +01:00
README.md Add a Golang sample using docker-compose 2019-12-14 16:03:12 +01:00
docker-compose.yml Add a Golang sample using docker-compose 2019-12-14 16:03:12 +01:00

README.md

Golang sample using docker-compose

This contains a sample docker-compose.yaml to run a simple golang application running with FoundationDB as a storage backend.

All variables are located in .env file.

Start the golang demo

docker-compose up -d

This will start:

  • 1 coordinator,
  • 2 fdbservers,
  • a golang application.

You can now head to http://localhost:8080/counter and see the counter rising-up after each refresh.

Access the FoundationDB cluster

If you want to access the cluster from your machine, here's a cluster file ready for you:

echo "docker:docker@127.0.0.1:4500" > docker.cluster

Stop the golang demo

docker-compose down