refcator: updare devcontainer

This commit is contained in:
2025-11-12 19:12:40 +01:00
parent 1332a7e794
commit 90de682cec
2 changed files with 16 additions and 16 deletions
@@ -1,4 +1,18 @@
services:
db:
image: postgres:18
volumes:
- db-data:/var/lib/postgresql
ports:
- 5432:5432
env_file:
- ../.env
environment:
TZ: Europe/Madrid
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
app:
build:
context: .
@@ -11,19 +25,5 @@ services:
depends_on:
- db
db:
image: postgres:18
volumes:
- postgres-data:/var/lib/postgresql
env_file:
- ../.env
ports:
- 5432:5432
environment:
TZ: Europe/Madrid
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
volumes:
postgres-data:
db-data:
+1 -1
View File
@@ -2,7 +2,7 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node-postgres
{
"name": "bun",
"dockerComposeFile": "compose.yml",
"dockerComposeFile": "compose.yaml",
"service": "app",
"shutdownAction": "stopCompose",
"workspaceFolder": "/workspace",