Skip to content

Instantly share code, notes, and snippets.

@willfish
Created August 30, 2019 09:45
Show Gist options
  • Save willfish/8b6f7c635620dc538499eb4bf641bcc0 to your computer and use it in GitHub Desktop.
Save willfish/8b6f7c635620dc538499eb4bf641bcc0 to your computer and use it in GitHub Desktop.
version: '2'
services:
postgres:
container_name: mydrive-dev-env-postgres
image: mdillon/postgis:9.4
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
ports:
- 5432:5432
volumes:
- mydrive-dev-env-postgres-volume:/var/lib/postgresql/data
redis:
container_name: mydrive-dev-env-redis
image: redis:2.8
ports:
- 6379:6379
volumes:
- mydrive-dev-env-redis-volume:/data
cassandra:
container_name: mydrive-dev-env-cassandra
image: cassandra:2.1
ports:
- 9042:9042 # Native client (cql) port
- 9160:9160 # Thrift port
environment:
- CASSANDRA_LISTEN_ADDRESS=127.0.0.1
- CASSANDRA_BROADCAST_ADDRESS=127.0.0.1
- CASSANDRA_BROADCAST_RPC_ADDRESS=127.0.0.1
- CASSANDRA_RPC_ADDRESS=0.0.0.0
- CASSANDRA_START_RPC=true
volumes:
- mydrive-dev-env-cassandra-volume:/var/lib/cassandra
volumes:
mydrive-dev-env-postgres-volume:
driver: local
mydrive-dev-env-redis-volume:
driver: local
mydrive-dev-env-cassandra-volume:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment