-
-
Save ferronrsmith/c083228231e23e55e9b45088e9d44c4e to your computer and use it in GitHub Desktop.
Docker compose file to start a local arangodb cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
agency: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_ROOT_PASSWORD=openSesame | |
command: --server.jwt-secret=openSesameJWT --database.password openSesame --server.endpoint tcp://0.0.0.0:5001 --agency.activate true --agency.size 1 --agency.supervision true | |
coordinator: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_ROOT_PASSWORD=openSesame | |
command: --server.jwt-secret=openSesameJWT --database.password openSesame --server.endpoint tcp://0.0.0.0:8529 --cluster.my-address tcp://coordinator:8529 --cluster.my-local-info coord1 --cluster.my-role COORDINATOR --cluster.agency-endpoint tcp://agency:5001 | |
ports: ['8000:8529'] | |
depends_on: | |
- agency | |
coordinator2: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_ROOT_PASSWORD=openSesame | |
command: --server.jwt-secret=openSesameJWT --database.password openSesame --server.endpoint tcp://0.0.0.0:8529 --cluster.my-address tcp://coordinator2:8529 --cluster.my-local-info coord2 --cluster.my-role COORDINATOR --cluster.agency-endpoint tcp://agency:5001 | |
ports: ['8001:8529'] | |
depends_on: | |
- agency | |
db1: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_ROOT_PASSWORD=openSesame | |
command: --server.jwt-secret=openSesameJWT --database.password openSesame --server.endpoint tcp://0.0.0.0:8529 --cluster.my-address tcp://db1:8529 --cluster.my-local-info db1 --cluster.my-role PRIMARY --cluster.agency-endpoint tcp://agency:5001 | |
depends_on: | |
- agency | |
db2: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_ROOT_PASSWORD=openSesame | |
command: --server.jwt-secret=openSesameJWT --database.password openSesame --server.endpoint tcp://0.0.0.0:8529 --cluster.my-address tcp://db2:8529 --cluster.my-local-info db2 --cluster.my-role PRIMARY --cluster.agency-endpoint tcp://agency:5001 | |
depends_on: | |
- agency | |
db3: | |
image: arangodb/arangodb | |
environment: | |
- ARANGO_ROOT_PASSWORD=openSesame | |
command: --server.jwt-secret=openSesameJWT --database.password openSesame --server.endpoint tcp://0.0.0.0:8529 --cluster.my-address tcp://db3:8529 --cluster.my-local-info db3 --cluster.my-role PRIMARY --cluster.agency-endpoint tcp://agency:5001 | |
depends_on: | |
- agency |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment