Skip to content

Instantly share code, notes, and snippets.

@Klerith
Last active October 11, 2024 22:52
Show Gist options
  • Save Klerith/49bbec66abe6affe3700324d2d3bf440 to your computer and use it in GitHub Desktop.
Save Klerith/49bbec66abe6affe3700324d2d3bf440 to your computer and use it in GitHub Desktop.
.env y docker compose para Postgres
PORT=3000
PUBLIC_PATH=public
POSTGRES_URL=postgresql://postgres:123456@localhost:5432/TODO
POSTGRES_USER=postgres
POSTGRES_DB=TODO
POSTGRES_PORT=5432
POSTGRES_PASSWORD=123456
NODE_ENV=development
version: '3.8'
services:
postgres-db:
image: postgres:15.3
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- 5432:5432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment