Skip to content

Instantly share code, notes, and snippets.

@ferronrsmith
Created February 18, 2020 13:14
Show Gist options
  • Select an option

  • Save ferronrsmith/b7d98f018002ac36dd526391cfd2133e to your computer and use it in GitHub Desktop.

Select an option

Save ferronrsmith/b7d98f018002ac36dd526391cfd2133e to your computer and use it in GitHub Desktop.
version: "3.4"
services:
agency:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.endpoint tcp://0.0.0.0:8529
--agency.my-address tcp://agency:8529
--server.authentication false
--agency.size 3
--agency.activate true
--database.directory /var/lib/arangodb3
agency2:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.endpoint tcp://0.0.0.0:8529
--agency.my-address tcp://agency2:8529
--server.authentication false
--agency.size 3
--agency.activate true
--database.directory /var/lib/arangodb3
agency3:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.endpoint tcp://0.0.0.0:8529
--agency.my-address tcp://agency3:8529
--server.authentication false
--agency.size 3
--agency.endpoint tcp://agency:8529
--agency.endpoint tcp://agency2:8529
--agency.endpoint tcp://agency3:8529
--agency.activate true
--database.directory /var/lib/arangodb3
coordinator:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.authentication=false
--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:8529
--cluster.agency-endpoint tcp://agency2:8529
--cluster.agency-endpoint tcp://agency3:8529
--database.directory /var/lib/arangodb3
ports: ['8000:8529']
coordinator1:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.authentication=false
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-address tcp://coordinator1:8529
--cluster.my-local-info coord2
--cluster.my-role COORDINATOR
--cluster.agency-endpoint tcp://agency:8529
--cluster.agency-endpoint tcp://agency2:8529
--cluster.agency-endpoint tcp://agency3:8529
--database.directory /var/lib/arangodb3
ports: ['8001:8529']
coordinator2:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.authentication=false
--server.endpoint tcp://0.0.0.0:8529
--cluster.my-address tcp://coordinator2:8529
--cluster.my-local-info coord3
--cluster.my-role COORDINATOR
--cluster.agency-endpoint tcp://agency:8529
--cluster.agency-endpoint tcp://agency2:8529
--cluster.agency-endpoint tcp://agency3:8529
--database.directory /var/lib/arangodb3
ports: ['8002:8529']
db1:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.authentication=false
--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:8529
--cluster.agency-endpoint tcp://agency2:8529
--cluster.agency-endpoint tcp://agency3:8529
--database.directory /var/lib/arangodb3
db2:
image: arangodb/arangodb
environment:
- ARANGO_NO_AUTH=1
command: arangod
--server.authentication=false
--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:8529
--cluster.agency-endpoint tcp://agency2:8529
--cluster.agency-endpoint tcp://agency3:8529
--database.directory /var/lib/arangodb3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment