You can run the standard Docker MongoDB image without requiring any additional setup.
# wercker.yml box: google/golang services: - id: mongo build: steps: (...)
Docker will expose the following env vars, which you can use to connect to mongo from within your application.
MONGO_ENV_MONGO_MAJOR MONGO_PORT MONGO_ENV_MONGO_VERSION MONGO_PORT_27017_TCP MONGO_PORT_27017_TCP_PROTO MONGO_PORT_27017_TCP_ADDR MONGO_NAME MONGO_PORT_27017_TCP_PORT
To learn about how to find out the IP address of a service container you should use the environment variables exposed by Docker. You can read more about that in our article available env vars.