-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
91 lines (83 loc) · 2.09 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# db for local dev
version: '3.9'
services:
didkit:
platform: linux/x86_64
image: ghcr.io/spruceid/didkit-http:latest
ports:
- "7777:3000"
postgresql:
image: postgres:12.9-alpine # matches version used on aws environments
container_name: pg-devices-api
ports:
- "5432:5432"
environment:
- POSTGRES_USER=dimo
- POSTGRES_PASSWORD=dimo
- POSTGRES_DB=devices_api
volumes:
- postgresdb:/var/lib/postgresql/data:delegated
redis:
image: redis:6.2 # latest version on ElastiCache
container_name: redis-devices-api
ports:
- "6379:6379"
volumes:
- redis:/data:delegated
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.1.3
container_name: elasticsearch-devices-api
ports:
- "9200:9200"
environment:
- xpack.security.enabled=false
- discovery.type=single-node
kibana:
image: docker.elastic.co/kibana/kibana:8.1.3
container_name: kibana-devices-api
ports:
- "5601:5601"
environment:
- SERVER_NAME=kibana
- ELASTICSEARCH_HOSTS=http:https://elasticsearch-devices-api:9200
localstack:
image: localstack/localstack:latest
environment:
- AWS_DEFAULT_REGION=us-east-1
- EDGE_PORT=4566
- SERVICES=lambda,s3
ports:
- '4566-4583:4566-4583'
volumes:
- "${TEMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
zookeeper:
image: 'wurstmeister/zookeeper:latest'
ports:
- '2181:2181'
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
# Does not persist anything!
kafka:
image: 'wurstmeister/kafka:latest'
ports:
- '9092:9092'
environment:
- KAFKA_BROKER_ID=1
- KAFKA_LISTENERS=PLAINTEXT:https://:9092
- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT:https://127.0.0.1:9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- ALLOW_PLAINTEXT_LISTENER=yes
depends_on:
- zookeeper
volumes:
data01:
driver: local
data02:
driver: local
data03:
driver: local
postgresdb:
driver: local
redis:
driver: local