Skip to content

Commit 2b0d24a

Browse files
committed
chore(devcontainer): fix port forwarding
Signed-off-by: Vladislav Polyakov <[email protected]>
1 parent bc49eb4 commit 2b0d24a

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.devcontainer/compose.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: ydb-python-sdk
2+
13
volumes:
24
ydb-data:
35
# driver: local
@@ -19,9 +21,10 @@ services:
1921
- ../:/workspaces/ydb-python-sdk:cached
2022

2123
environment:
22-
- YDB_IMAGE_VERSION=24.3
23-
- YDB_CREDENTIALS_USER=root
24-
- YDB_CREDENTIALS_PASSWORD=1234
24+
- YDB_VERSION=25.1
25+
- YDB_STATIC_CREDENTIALS_USER=root
26+
- YDB_STATIC_CREDENTIALS_PASSWORD=1234
27+
- YDB_STATIC_CREDENTIALS_ENDPOINT=grpc://ydb:2136
2528
- YDB_CONNECTION_STRING=grpc://ydb:2136/local
2629
- YDB_CONNECTION_STRING_SECURE=grpcs://ydb:2135/local
2730
- YDB_SSL_ROOT_CERTIFICATES_FILE=/ydb_certs/ca.pem
@@ -30,15 +33,15 @@ services:
3033
command: sleep infinity
3134

3235
ydb:
33-
image: ghcr.io/ydb-platform/local-ydb:24.3
36+
image: ydbplatform/local-ydb:25.1
3437
restart: unless-stopped
3538
hostname: ydb
3639
platform: linux/amd64
3740

3841
ports:
39-
- 2135:2135
40-
- 2136:2136
41-
- 8765:8765
42+
- 2135
43+
- 2136
44+
- 8765
4245

4346
volumes:
4447
- ydb-data:/ydb_data

.devcontainer/devcontainer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
"features": {
1616
"ghcr.io/devcontainers/features/git": {},
1717
"ghcr.io/devcontainers/features/common-utils": {},
18-
"ghcr.io/devcontainers/features/github-cli:1": {}
18+
"ghcr.io/devcontainers/features/github-cli:1": {},
19+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
1920
},
2021
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2122
"forwardPorts": [
22-
2135,
23-
2136,
24-
8765,
25-
9090,
26-
9464
23+
"ydb:2135",
24+
"ydb:2136",
25+
"ydb:8765"
2726
],
2827
// Use 'initializeCommand' to run commands before the container is created.
2928
"initializeCommand": "chmod +x .devcontainer/commands/initialize.sh && .devcontainer/commands/initialize.sh",

0 commit comments

Comments
 (0)