From 484566564b71adc8e98729b7764a473bc9e3613d Mon Sep 17 00:00:00 2001 From: Diego Freniche Date: Tue, 27 Feb 2024 11:52:06 +0100 Subject: [PATCH] Changes to devcontainers --- .devcontainer/devcontainer.json | 6 +++--- .devcontainer/docker-compose.yml | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 26faf4f..a72214c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": {}, @@ -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" } \ No newline at end of file diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index a084728..fe335db 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -1,6 +1,7 @@ -version: "3.9" +version: '3.8' + services: - postgresql: + db: image: postgres:latest restart: unless-stopped volumes: @@ -21,8 +22,8 @@ services: PGADMIN_DEFAULT_EMAIL: jonhdoe@gmail.com 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"