Skip to content

Instantly share code, notes, and snippets.

@vnkdj5
Created October 7, 2024 05:09
Show Gist options
  • Save vnkdj5/fcb41c09d57d439af61d28b2344bb9b7 to your computer and use it in GitHub Desktop.
Save vnkdj5/fcb41c09d57d439af61d28b2344bb9b7 to your computer and use it in GitHub Desktop.
Docker compose for dynamo, kafka, lenses, redis cluster
version: "3.9"
services:
dynamodb-local:
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ./data"
image: "amazon/dynamodb-local:latest"
container_name: dynamodb-local
network_mode: host # Set the network mode to host
# ports:
# - "8000:8000"
volumes:
- "./docker/dynamodb:/home/dynamodblocal/data"
working_dir: /home/dynamodblocal
redis-single-node-cluster:
image: docker.io/bitnami/redis-cluster:7.0
network_mode: host
container_name: redis-single-node-cluster
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
- 'REDIS_CLUSTER_REPLICAS=0'
- 'REDIS_NODES=127.0.0.1 127.0.0.1 127.0.0.1'
- 'REDIS_CLUSTER_CREATOR=yes'
- 'REDIS_CLUSTER_DYNAMIC_IPS=no'
- 'REDIS_CLUSTER_ANNOUNCE_IP=127.0.0.1'
lenses:
image: lensesio/box:latest
container_name: lenses
network_mode: host
environment:
EULA: https://licenses.lenses.io/download/lensesdl?id=YOUR_LICENSE
SAMPLEDATA: 0
ZOOKEEPER_admin_serverPort: 9080
ZOOKEEPER_admin_enableServer: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment