-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
103 lines (98 loc) · 2.87 KB
/
docker-compose.yaml
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
services:
redpanda:
container_name: redpanda
image: docker.redpanda.com/redpandadata/redpanda:v23.3.6
command:
- redpanda
- start
- --smp 1
- --memory 1G
# this is no longer needed as we provide the configurations via ./docker/redpanda/redpanda.yaml
# - --kafka-addr internal://0.0.0.0:29092,external://0.0.0.0:9092
# - --advertise-kafka-addr internal://redpanda:29092,external://localhost:9092
ports:
- "9092:9092"
- "29092:29092"
volumes:
# these mounts seem to be required on MacOS, not needed for Linux
# - ./data/redpanda/data:/var/lib/redpanda/data
# - ./data/redpanda/logs:/var/lib/redpanda/logs
- ./docker/redpanda/redpanda.yaml:/etc/redpanda/redpanda.yaml:ro
healthcheck:
test: ["CMD", "curl", "-f", "localhost:9644/v1/status/ready"]
start_period: 5s
interval: 3s
networks:
- ch_ntw
console:
container_name: redpanda-console
image: docker.redpanda.com/vectorized/console:v2.4.3
networks:
- ch_ntw
entrypoint: /bin/sh
command: -c 'echo "$$CONSOLE_CONFIG_FILE" > /tmp/config.yml; /app/console'
environment:
CONFIG_FILEPATH: /tmp/config.yml
CONSOLE_CONFIG_FILE: |
kafka:
brokers: ["redpanda:29092"]
redpanda:
adminApi:
enabled: true
urls: ["http://redpanda:9644"]
ports:
- 8080:8080
depends_on:
- redpanda
deephaven:
container_name: deephaven
build:
context: docker/deephaven
environment:
START_OPTS: -Xmx12g -Dio.deephaven.app.GcApplication.enabled=true -DAuthHandlers=io.deephaven.auth.AnonymousAuthenticationHandler
ports:
- "10000:10000"
volumes:
- ./data/deephaven:/data/storage
- ./data/parquet:/data/parquet
depends_on:
redpanda:
condition: service_healthy
clickhouse:
condition: service_healthy
networks:
- ch_ntw
clickhouse:
container_name: clickhouse
image: clickhouse/clickhouse-server:24.3.1.2672
environment:
CLICKHOUSE_USER: default
CLICKHOUSE_PASSWORD: password
CLICKHOUSE_ALWAYS_RUN_INITDB_SCRIPTS: true
ports:
- "8123:8123"
volumes:
- ./data/clickhouse:/var/lib/clickhouse
- ./docker/clickhouse/sql/init_trades.sql:/docker-entrypoint-initdb.d/init_trades.sql:ro
- ./docker/clickhouse/sql/init_orderbooks.sql:/docker-entrypoint-initdb.d/init_orderbooks.sql:ro
healthcheck:
test: ["CMD", "wget", "--tries=3", "--spider", "-q", "localhost:8123/ping"]
start_period: 10s
interval: 3s
networks:
- ch_ntw
cryptofeed:
container_name: cryptofeed
build:
context: docker/cryptofeed
depends_on:
redpanda:
condition: service_healthy
networks:
- ch_ntw
networks:
ch_ntw:
driver: bridge
ipam:
config:
- subnet: 10.222.1.0/24