-
-
Save Klerith/49bbec66abe6affe3700324d2d3bf440 to your computer and use it in GitHub Desktop.
.env y docker compose para Postgres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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