Skip to content

Commit 7f2d2af

Browse files
authored
Update ScalarDB Cluster standalone mode files (#66)
1 parent df297ca commit 7f2d2af

File tree

2 files changed

+86
-23
lines changed

2 files changed

+86
-23
lines changed

scalardb-cluster-standalone-mode/docker-compose.yaml

Lines changed: 43 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,52 @@
11
version: "3.5"
22
services:
3-
4-
postgresql:
5-
container_name: "postgresql"
6-
image: "postgres:15"
3+
mysql:
4+
image: mysql:8.1
5+
container_name: "mysql-1"
6+
environment:
7+
MYSQL_ROOT_PASSWORD: mysql
78
ports:
8-
- 5432:5432
9+
- "3306:3306"
10+
postgres:
11+
image: postgres:15
12+
container_name: "postgres-1"
913
environment:
10-
- POSTGRES_PASSWORD=postgres
11-
healthcheck:
12-
test: ["CMD-SHELL", "pg_isready || exit 1"]
13-
interval: 1s
14-
timeout: 10s
15-
retries: 60
16-
start_period: 30s
14+
POSTGRES_USER: postgres
15+
POSTGRES_PASSWORD: postgres
16+
ports:
17+
- "5432:5432"
18+
oracle:
19+
image: container-registry.oracle.com/database/free:23.4.0.0
20+
container_name: "oracle-1"
21+
environment:
22+
ORACLE_PWD: Oracle
23+
ports:
24+
- "1521:1521"
25+
sqlserver:
26+
image: mcr.microsoft.com/mssql/server:2022-latest
27+
container_name: "sqlserver-1"
28+
environment:
29+
MSSQL_PID: "Express"
30+
SA_PASSWORD: "SqlServer22"
31+
ACCEPT_EULA: "Y"
32+
ports:
33+
- "1433:1433"
34+
dynamodb:
35+
image: amazon/dynamodb-local:2.5.2
36+
container_name: "dynamodb-1"
37+
ports:
38+
- "8000:8000"
39+
cassandra:
40+
image: cassandra:3.11
41+
container_name: "cassandra-1"
42+
ports:
43+
- "9042:9042"
1744

18-
scalardb-cluster-standalone:
45+
scalardb-cluster-node:
46+
image: ghcr.io/scalar-labs/scalardb-cluster-node-byol-premium:3.13.0
1947
container_name: "scalardb-cluser-node"
20-
image: "ghcr.io/scalar-labs/scalardb-cluster-node-byol-premium:3.13.0"
2148
ports:
22-
- 60053:60053
23-
- 9080:9080
49+
- "60053:60053"
50+
- "9080:9080"
2451
volumes:
2552
- ./scalardb-cluster-node.properties:/scalardb-cluster/node/scalardb-cluster-node.properties
26-
depends_on:
27-
postgresql:
28-
condition: service_healthy

scalardb-cluster-standalone-mode/scalardb-cluster-node.properties

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,46 @@
1-
scalar.db.storage=jdbc
2-
scalar.db.contact_points=jdbc:postgresql://postgresql:5432/postgres
3-
scalar.db.username=postgres
4-
scalar.db.password=postgres
1+
# For MySQL
2+
# scalar.db.storage=jdbc
3+
# scalar.db.contact_points=jdbc:mysql://mysql-1:3306/
4+
# scalar.db.username=root
5+
# scalar.db.password=mysql
6+
7+
# For PostgreSQL
8+
# scalar.db.storage=jdbc
9+
# scalar.db.contact_points=jdbc:postgresql://postgres-1:5432/
10+
# scalar.db.username=postgres
11+
# scalar.db.password=postgres
12+
13+
# For Oracle
14+
# scalar.db.storage=jdbc
15+
# scalar.db.contact_points=jdbc:oracle:thin:@//oracle-1:1521/FREEPDB1
16+
# scalar.db.username=SYSTEM
17+
# scalar.db.password=Oracle
18+
19+
# For SQL Server
20+
# scalar.db.storage=jdbc
21+
# scalar.db.contact_points=jdbc:sqlserver://sqlserver-1:1433;encrypt=true;trustServerCertificate=true
22+
# scalar.db.username=sa
23+
# scalar.db.password=SqlServer22
24+
25+
# For DynamoDB Local
26+
# scalar.db.storage=dynamo
27+
# scalar.db.contact_points=sample
28+
# scalar.db.username=sample
29+
# scalar.db.password=sample
30+
# scalar.db.dynamo.endpoint_override=http://dynamodb-1:8000
31+
32+
# For Cosmos DB
33+
# scalar.db.storage=cosmos
34+
# scalar.db.contact_points=<COSMOS_DB_FOR_NOSQL_URI>
35+
# scalar.db.password=<COSMOS_DB_FOR_NOSQL_KEY>
36+
37+
# For Cassandra
38+
# scalar.db.storage=cassandra
39+
# scalar.db.contact_points=cassandra-1
40+
# scalar.db.username=cassandra
41+
# scalar.db.password=cassandra
42+
43+
# Standalone mode
544
scalar.db.cluster.node.standalone_mode.enabled=true
645

746
# License key configurations

0 commit comments

Comments
 (0)