-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.61 KB
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
services:
registry-1:
build:
context: .
dockerfile: Dockerfile
depends_on:
scylla:
condition: service_healthy
environment:
HOST: 0.0.0.0
PORT: 8080
SCYLLA_CONTACT_POINTS: scylla
SCYLLA_LOCAL_DC: datacenter1
SCYLLA_KEYSPACE: nmos_registry
SCYLLA_REPLICATION_FACTOR: 1
HEARTBEAT_GC_INTERVAL_SECONDS: ${HEARTBEAT_GC_INTERVAL_SECONDS:-12}
# Must be reachable from clients outside Docker.
# Set EXTERNAL_HOST when running `docker compose`, e.g. EXTERNAL_HOST=192.168.1.10
PUBLIC_WS_BASE: ws://${EXTERNAL_HOST:-127.0.0.1}:8080
ports:
- "8080:8080"
registry-2:
build:
context: .
dockerfile: Dockerfile
depends_on:
scylla:
condition: service_healthy
environment:
HOST: 0.0.0.0
PORT: 8080
SCYLLA_CONTACT_POINTS: scylla
SCYLLA_LOCAL_DC: datacenter1
SCYLLA_KEYSPACE: nmos_registry
SCYLLA_REPLICATION_FACTOR: 1
HEARTBEAT_GC_INTERVAL_SECONDS: ${HEARTBEAT_GC_INTERVAL_SECONDS:-12}
# Externally this service is published on 8081 (to container :8080).
PUBLIC_WS_BASE: ws://${EXTERNAL_HOST:-127.0.0.1}:8081
ports:
- "8081:8080"
scylla:
image: scylladb/scylla:6.2
command: --smp 1 --memory 750M --overprovisioned 1 --api-address 0.0.0.0
healthcheck:
test: ["CMD-SHELL", "nodetool status >/dev/null 2>&1 && nodetool status | grep -q '^UN'"]
interval: 10s
timeout: 5s
retries: 30
start_period: 40s
ports:
- "9042:9042"
volumes:
- scylla-data:/var/lib/scylla
volumes:
scylla-data: {}