Skip to content

Instantly share code, notes, and snippets.

@madflojo
Created June 21, 2020 16:11
Show Gist options
  • Save madflojo/4b8cfd33979ea4d5519f625dcd4ae0ee to your computer and use it in GitHub Desktop.
Save madflojo/4b8cfd33979ea4d5519f625dcd4ae0ee to your computer and use it in GitHub Desktop.
cassandra-primary:
image: madflojo/cassandra:latest
command: /bin/bash -c "sleep 1 && /docker-entrypoint.sh cassandra -f"
environment:
- CASSANDRA_KEYSPACE=hord
expose:
- 7000
- 7001
- 7199
- 9042
- 9160
cassandra:
image: madflojo/cassandra:latest
command: /bin/bash -c "sleep 15 && /docker-entrypoint.sh cassandra -f"
environment:
- CASSANDRA_SEEDS=cassandra-primary
- CASSANDRA_KEYSPACE=hord
depends_on:
- cassandra-primary
expose:
- 7000
- 7001
- 7199
- 9042
- 9160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment