refcator: updare devcontainer
This commit is contained in:
@@ -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:
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user