This repository has been archived by the owner on Aug 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
127 lines (114 loc) · 3.02 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: '3.7'
x-container-common: &container-common
restart: ${CONTAINER_RESTART-on-failure}
networks:
- orchestrate
x-postgres-common: &postgres-common
environment:
POSTGRES_PASSWORD: postgres
services:
zookeeper:
<<: *container-common
image: confluentinc/cp-zookeeper:5.3.0
ports:
- ${ZOOKEEPER_EXTERNAL_PORT-2181}:2181
environment:
ZOOKEEPER_CLIENT_PORT: ${ZOOKEEPER_CLIENT_PORT-32181}
ZOOKEEPER_TICK_TIME: ${ZOOKEEPER_TICK_TIME-2000}
kafka:
<<: *container-common
image: confluentinc/cp-kafka:5.3.0
depends_on:
- zookeeper
ports:
- ${KAFKA_EXTERNAL_PORT-9092}:9092
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:${ZOOKEEPER_CLIENT_PORT-32181}
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:29092,EXTERNAL://${KAFKA_EXTERNAL_HOSTNAME-localhost}:${KAFKA_EXTERNAL_PORT-9092}
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
redis:
<<: *container-common
image: redis:5.0-alpine
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- 6379:6379
volumes:
- ./config/redis/redis.conf:/usr/local/etc/redis/redis.conf
postgres-contract-registry:
<<: *container-common
<<: *postgres-common
image: postgres:10.12-alpine
ports:
- 5432
volumes:
- db-data-contract-registry:/var/lib/postgresql/data
postgres-transaction-scheduler:
<<: *container-common
<<: *postgres-common
image: postgres:10.12-alpine
volumes:
- db-data-transaction-scheduler:/var/lib/postgresql/data
ports:
- 5432
postgres-chain-registry:
<<: *container-common
<<: *postgres-common
image: postgres:10.12-alpine
volumes:
- db-data-chain-registry:/var/lib/postgresql/data
ports:
- 5432
vault:
<<: *container-common
image: library/vault:1.1.1
tty: true
cap_add:
- IPC_LOCK
ports:
- 9999:8200
volumes:
- ./config/hashicorp/config.hcl:/vault/config.hcl:ro
entrypoint: vault server -config=/vault
vault-init:
<<: *container-common
# image: library/vault:1.1.1
build: ./config/hashicorp
environment:
VAULT_ADDR: ${VAULT_ADDR-http://vault:8200}
restart: 'no'
depends_on:
- vault
volumes:
- vault-token:/vault/token
- ./config/hashicorp/init.sh:/init.sh
command: sh /init.sh
jaeger:
<<: *container-common
image: jaegertracing/all-in-one:1.8
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
ports:
- 5775:5775/udp
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 14268:14268
- 9411:9411
volumes:
db-data-contract-registry:
driver: local
db-data-transaction-scheduler:
driver: local
db-data-chain-registry:
driver: local
chain-data:
driver: local
vault-token:
driver: local
networks:
orchestrate:
driver: bridge