Skip to content

Commit 4845665

Browse files
committed
Changes to devcontainers
1 parent c9d01d2 commit 4845665

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "PostgreSQL and PG Admin",
55
"waitFor": "onCreateCommand",
66
"dockerComposeFile": "docker-compose.yml",
7-
"service": "postgresql",
7+
"service": "db",
88
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
99
// Features to add to the dev container. More info: https://containers.dev/features.
1010
// "features": {},
@@ -33,9 +33,9 @@
3333
"forwardPorts": [
3434
5432,
3535
8080
36-
]
36+
],
3737
// Use 'postCreateCommand' to run commands after the container is created.
3838
// "postCreateCommand": "yarn install",
3939
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
40-
// "remoteUser": "root"
40+
// "remoteUser": "vscode"
4141
}

.devcontainer/docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
version: "3.9"
1+
version: '3.8'
2+
23
services:
3-
postgresql:
4+
db:
45
image: postgres:latest
56
restart: unless-stopped
67
volumes:
@@ -21,8 +22,8 @@ services:
2122
PGADMIN_DEFAULT_EMAIL: [email protected]
2223
PGADMIN_DEFAULT_PASSWORD: StrongPassword
2324
PGADMIN_LISTEN_PORT: 8080
24-
PGADMIN_CONFIG_PROXY_X_HOST_COUNT: 1
25-
PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT: 1
25+
PGADMIN_CONFIG_PROXY_X_HOST_COUNT: 1
26+
PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT: 1
2627
ports:
2728
- "8080:8080"
2829

0 commit comments

Comments
 (0)