This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
140 lines (132 loc) · 4.99 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
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3'
services:
phoenix:
image: $PHOENIX_IMAGE:$PHOENIX_VERSION
links:
- postgresql
ports:
- "3000:3000"
environment:
- SECRET_KEY_BASE=f4888a25d7ec43a3e0e3a1cf6780c272
- DATABASE_URL=postgresql://postgres:password@postgresql:5432/phoenix
- RAILS_SERVE_STATIC_FILES=1
- AUTHENTICATION_CRYPTO_KEY_32_BYTES=f4888a25d7ec43a3e0e3a1cf6780c272
- UNAUTHENTICATED_SHISA_BASE_URL=http://shisa:3100
- SHISA_API_URL=http://admin:secret@shisa:3100/api
- DATA_API_CONNECTOR_URL=http://data-api:4001/api
- DATA_API_PUBLIC_HOSTNAME=localhost:4002
- INSIGHTS_ES_URL=http://elastic:9200
- PHOENIX_OAUTH_SHISA_SECRET=ffa10a2a1082b12ff40f338857510dcd6203a30bf224eb2a5a05734ba7fbdd36f5cf3848e4bb5bbf1e1bb74c4556454e7c1a9323032277434195425251195fd0
- ENABLED_FEATURES=without_email_confirmation,soap_endpoints,kafka_endpoints,clojud
- PHOENIX_PUBLIC_URL=http://phoenix:3000/
volumes:
- ./phoenix:/home/box/phoenix/standalone:delegated
- ./jwtkeys:/home/box/phoenix/config/firebird_keys:delegated
- ./capbackeys:/home/box/phoenix/config/capbac_keys:delegated
shisa:
image: $SHISA_IMAGE:$SHISA_VERSION
links:
- postgresql
ports:
- "3100:3100"
environment:
- SECRET_KEY_BASE=f4888a25d7ec43a3e0e3a1cf6780c272
- RAILS_SERVE_STATIC_FILES=1
- AUTHENTICATION_CRYPTO_KEY_32_BYTES=f4888a25d7ec43a3e0e3a1cf6780c272
- DATABASE_URL=postgresql://postgres:password@postgresql:5432/shisa
- SHISA_API_SECRET=secret
- MAILER_DEFAULT_HOST=test.xapix.io
- MAILER_DELIVERY_METHOD=file
postgresql:
image: postgres:10-alpine
environment:
- POSTGRES_PASSWORD=password
volumes:
- ./data/psql:/var/lib/postgresql/data:delegated
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.4
environment:
- "cluster.name=xapix-es"
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "bootstrap.memory_lock=true"
volumes:
- ./data/es:/usr/share/elasticsearch/data:delegated
ulimits:
memlock:
soft: -1
hard: -1
data-api:
image: $CLOJUD_IMAGE:$CLOJUD_VERSION
links:
- kafka
- connect
ports:
- "4001:4001"
- "4002:4002"
environment:
CLOJUD_ME: localhost:4002
# TODO: remove CLOJUD_KAFKA after transition to new infra
CLOJUD_KAFKA: kafka:9092
CLOJUD_KAFKA_BOOTSTRAP_SERVERS: kafka:9092
CLOJUD_APP_ID: clojud-local
CLOJUD_TOPIC_PREFIX: local
CLOJUD_ELASTIC_ENDPOINT: http://elastic:9200
CLOJUD_KAFKA_CONNECT_ENDPOINT: http://connect:8086
CLOJUD_XAPIX_PORT: 4001
CLOJUD_API_PORT: 4000
CLOJUD_HTTP_GATEWAY_PORT: 4002
CLOJUD_CIPHER_KEY: secret
CLOJUD_PUBLIC_KEY: /etc/clojud/jwtkeys/jwt_ecdsa.pub
CLOJUD_PRIVATE_KEY: /etc/clojud/jwtkeys/jwt_ecdsa.key
ROOT_CLIENT_ID: http://phoenix:3000/
ROOT_CLIENT_PUBLIC_KEY: /etc/clojud/capbac/client.pub
volumes:
- ./jwtkeys:/etc/clojud/jwtkeys:delegated
- ./capbackeys:/etc/clojud/capbac:delegated
kafka:
image: confluentinc/cp-kafka:4.1.1-2
ports:
- "9092:9092"
links:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9093,EXTERNAL://kafka:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: EXTERNAL:PLAINTEXT,INTERNAL:PLAINTEXT
KAFKA_LISTENERS: INTERNAL://0.0.0.0:9093, EXTERNAL://0.0.0.0:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 60000
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
connect:
image: $CLOJUD_CONNECT_IMAGE:$CLOJUD_CONNECT_VERSION
ports:
- "8086:8086"
environment:
CONNECT_BOOTSTRAP_SERVERS: kafka:9093
CONNECT_REST_PORT: 8086
CONNECT_GROUP_ID: kafka-connect-dev
CONNECT_CONFIG_STORAGE_TOPIC: kafka-connect-config
CONNECT_OFFSET_STORAGE_TOPIC: kafka-connect-offset
CONNECT_STATUS_STORAGE_TOPIC: kafka-connect-status
CONNECT_KEY_CONVERTER: org.apache.kafka.connect.storage.StringConverter
CONNECT_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_VALUE_CONVERTER_SCHEMAS_ENABLE: "false"
CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_PLUGIN_PATH: /usr/share/java,/etc/kafka-connect/jars
CONNECT_REST_ADVERTISED_HOST_NAME: localhost
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: "1"
CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: "1"
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: "1"
CONNECT_PLUGIN_PATH: /usr/share/java,/usr/share/confluent-hub-components
links:
- kafka
- elastic
zookeeper:
image: confluentinc/cp-zookeeper:4.1.1-2
environment:
ZOOKEEPER_CLIENT_PORT: 32181
ZOOKEEPER_TICK_TIME: 2000