aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-06 01:51:28 -0700
committerchrislu <chris.lu@gmail.com>2022-05-06 01:51:28 -0700
commitb2a43dd044123d244be26c87155187d211be1c49 (patch)
tree7dc5edc901f204b2da91f245eb44abae1b04df29 /docker
parentd5fe5d12b74d65a65138de62e9d98cfb3bac14de (diff)
parenta69bf53405d703f29f7b8ca358c67840c2876499 (diff)
downloadseaweedfs-b2a43dd044123d244be26c87155187d211be1c49.tar.xz
seaweedfs-b2a43dd044123d244be26c87155187d211be1c49.zip
Merge branch 'master' of https://github.com/chrislusf/seaweedfs
Diffstat (limited to 'docker')
-rw-r--r--docker/Makefile3
-rw-r--r--docker/compose/local-ydb-compose.yml35
2 files changed, 38 insertions, 0 deletions
diff --git a/docker/Makefile b/docker/Makefile
index 1cd3e3178..a1e82a338 100644
--- a/docker/Makefile
+++ b/docker/Makefile
@@ -49,6 +49,9 @@ dev_replicate: build
dev_auditlog: build
docker-compose -f compose/local-auditlog-compose.yml -p seaweedfs up
+dev_ydb: build
+ docker-compose -f compose/local-ydb-compose.yml -p seaweedfs up
+
cluster: build
docker-compose -f compose/local-cluster-compose.yml -p seaweedfs up
diff --git a/docker/compose/local-ydb-compose.yml b/docker/compose/local-ydb-compose.yml
new file mode 100644
index 000000000..a17b77b8a
--- /dev/null
+++ b/docker/compose/local-ydb-compose.yml
@@ -0,0 +1,35 @@
+version: '2'
+
+services:
+ ydb:
+ image: cr.yandex/yc/yandex-docker-local-ydb
+ ports:
+ - 2135:2135
+ - 8765:8765
+ - 2136:2136
+ environment:
+ - YDB_DEFAULT_LOG_LEVEL=DEBUG
+ - GRPC_TLS_PORT=2135
+ - GRPC_PORT=2136
+ - MON_PORT=8765
+ s3:
+ image: chrislusf/seaweedfs:local
+ ports:
+ - 9333:9333
+ - 19333:19333
+ - 8084:8080
+ - 18084:18080
+ - 8888:8888
+ - 8000:8000
+ - 18888:18888
+ command: "server -ip=s3 -filer -master.volumeSizeLimitMB=16 -volume.max=0 -volume -volume.preStopSeconds=1 -s3 -s3.config=/etc/seaweedfs/s3.json -s3.port=8000 -s3.allowEmptyFolder=false -s3.allowDeleteBucketNotEmpty=false"
+ volumes:
+ - ./s3.json:/etc/seaweedfs/s3.json
+ environment:
+ WEED_LEVELDB2_ENABLED: "false"
+ WEED_YDB_ENABLED: "true"
+ WEED_YDB_DSN: "grpc://ydb:2136/?database=local"
+ WEED_YDB_PREFIX: "seaweedfs"
+ YDB_ANONYMOUS_CREDENTIALS: 1
+ WEED_MASTER_VOLUME_GROWTH_COPY_1: 1
+ WEED_MASTER_VOLUME_GROWTH_COPY_OTHER: 1 \ No newline at end of file