-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
96 lines (89 loc) · 2.96 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
services:
cassandra:
image: cassandra:3.11
container_name: "scalardl-samples-cassandra-1"
volumes:
- cassandra-data:/var/lib/cassandra
# ports:
# - "7199:7199" # JMX
# - "7000:7000" # cluster communication
# - "7001:7001" # cluster communication (SSL)
# - "9042:9042" # native protocol clients
# - "9160:9160" # thrift clients
environment:
- CASSANDRA_DC=dc1
- CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch
networks:
- scalar-network
healthcheck:
test: ["CMD-SHELL", "cqlsh < /dev/null || exit 1"]
interval: 1s
timeout: 10s
retries: 60
start_period: 30s
scalardl-ledger-schema-loader-cassandra:
image: ghcr.io/scalar-labs/scalardl-schema-loader:${SCALARDL_VERSION}
volumes:
- ./scalardb.properties:/scalardb.properties
depends_on:
cassandra:
condition: service_healthy
command:
- "-c"
- "/scalardb.properties"
- "--coordinator"
- "--replication-factor"
- "1"
networks:
- scalar-network
restart: on-failure
scalar-ledger:
image: ghcr.io/scalar-labs/scalardl-ledger-byol:${SCALARDL_VERSION}
container_name: "scalardl-samples-scalar-ledger-1"
volumes:
- ./fixture/ledger-key.pem:/scalar/ledger-key.pem
- ./fixture/ledger.properties.tmpl:/scalar/ledger/ledger.properties.tmpl
- ./fixture/trial-license-cert.pem:/scalar/license-cert.pem
# If you have a commercial license key, you must use `commercial-license-cert.pem` instead of `trial-license-cert.pem`.
# - ./fixture/commercial-license-cert.pem:/scalar/license-cert.pem
depends_on:
scalardl-ledger-schema-loader-cassandra:
condition: service_completed_successfully
environment:
- SCALAR_DB_CONTACT_POINTS=cassandra
- SCALAR_DB_STORAGE=cassandra
- SCALAR_DL_LEDGER_PROOF_ENABLED=true
- SCALAR_DL_LEDGER_PROOF_PRIVATE_KEY_PATH=/scalar/ledger-key.pem
##### PLEASE REPLACE THIS VALUE WITH YOUR LICENSE KEY #####
- SCALAR_DL_LICENSING_LICENSE_KEY=<SET_YOUR_LICENSE_KEY>
##### PLEASE REPLACE THIS VALUE WITH YOUR LICENSE KEY #####
networks:
- scalar-network
healthcheck:
test: ["CMD-SHELL", "grpc_health_probe -addr=localhost:50051 && grpc_health_probe -addr=ledger-envoy:50051 || exit 1"]
interval: 1s
timeout: 10s
retries: 60
start_period: 10s
ledger-envoy:
image: ghcr.io/scalar-labs/scalar-envoy:1.5.0
container_name: "scalardl-samples-ledger-envoy-1"
ports:
- "9901:9901"
- "50051:50051"
- "50052:50052"
depends_on:
scalar-ledger:
condition: service_started
environment:
- admin_access_log_path=/dev/stdout
- scalardl_address=scalar-ledger
- service_listeners=scalar-service:50051,scalar-privileged:50052
- envoy_tls=false
networks:
- scalar-network
volumes:
cassandra-data:
networks:
scalar-network:
name: scalar-network