Couchbase Server and Couchbase Sync Gateway Docker template

When starting using Couchbase Server and Couchbase Sync Gateway, I found it quite a configuration to get started for using Couchbase just to see what’s in it for me. I ended up with a Docker Compose that I found worth sharing.

This Docker Compose example builds a Couchbase Server container, creates two buckets with indexes and authentication. Next to that, it starts a Sync Gateway linked to the Couchbase Server. So with just docker-compose up, you have an environment ready to use with (for example) Couchbase Lite. Have fun!