first commit
This commit is contained in:
5
db-docker/config/consul_config.json
Normal file
5
db-docker/config/consul_config.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"Redis": "127.0.0.1:6379",
|
||||
"Dynamodb": "http://localhost:8000",
|
||||
"Kafka": "localhost:9092"
|
||||
}
|
||||
26
db-docker/docker-compose.yml
Normal file
26
db-docker/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '2'
|
||||
services:
|
||||
consul:
|
||||
image: consul:latest
|
||||
ports:
|
||||
- "8500:8500"
|
||||
|
||||
consulsetup:
|
||||
image: consul:latest
|
||||
depends_on:
|
||||
- consul
|
||||
restart: "no"
|
||||
volumes:
|
||||
- ./config/consul_config.json:/etc/consul_config.json
|
||||
entrypoint:
|
||||
["sh", "-c", "curl --request PUT --data @/etc/consul_config.json http://consul:8500/v1/kv/config"]
|
||||
|
||||
redis:
|
||||
image: redis:latest
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
dynamodb:
|
||||
image: amazon/dynamodb-local
|
||||
ports:
|
||||
- "8000:8000"
|
||||
Reference in New Issue
Block a user