Skip to content

Commit

Permalink
Changes to devcontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreniche committed Feb 27, 2024
1 parent c9d01d2 commit 4845665
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "PostgreSQL and PG Admin",
"waitFor": "onCreateCommand",
"dockerComposeFile": "docker-compose.yml",
"service": "postgresql",
"service": "db",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
Expand Down Expand Up @@ -33,9 +33,9 @@
"forwardPorts": [
5432,
8080
]
],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
// "remoteUser": "vscode"
}
9 changes: 5 additions & 4 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: "3.9"
version: '3.8'

services:
postgresql:
db:
image: postgres:latest
restart: unless-stopped
volumes:
Expand All @@ -21,8 +22,8 @@ services:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: StrongPassword
PGADMIN_LISTEN_PORT: 8080
PGADMIN_CONFIG_PROXY_X_HOST_COUNT: 1
PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT: 1
PGADMIN_CONFIG_PROXY_X_HOST_COUNT: 1
PGADMIN_CONFIG_PROXY_X_PREFIX_COUNT: 1
ports:
- "8080:8080"

Expand Down

0 comments on commit 4845665

Please sign in to comment.