chore: update env templates

This commit is contained in:
Hackntosh 2024-02-15 13:48:27 +00:00
parent a6e6b93c3a
commit 1ce576ddd0
2 changed files with 5 additions and 3 deletions

View file

@ -14,7 +14,7 @@ DB_HOST=localhost
DATABASE_URL=postgresql://<placeholder>:<placeholder>@${DB_HOST}:5432/${POSTGRES_DB}?schema=<placeholder> DATABASE_URL=postgresql://<placeholder>:<placeholder>@${DB_HOST}:5432/${POSTGRES_DB}?schema=<placeholder>
# Redis # Redis
REDIS_HOST=127.0.0.1 # localhost (for docker use redis) REDIS_HOST=127.0.0.1 # localhost (for docker use `redis`)
REDIS_PORT=6379 REDIS_PORT=6379
REDIS_PASSWORD=<same_as_defined_in_docker_compose_file> REDIS_PASSWORD=<same_as_defined_in_docker_compose_file>

View file

@ -5,11 +5,13 @@ NODE_ENV=production
POSTGRES_DB=<placeholder> POSTGRES_DB=<placeholder>
POSTGRES_USER=<placeholder> POSTGRES_USER=<placeholder>
POSTGRES_PASSWORD=<placeholder> POSTGRES_PASSWORD=<placeholder>
# Use this hostname on Docker
DB_HOST=postgres DB_HOST=postgres
DATABASE_URL=postgresql://<USER>:<PASS>@${DB_HOST}:<PORT>/${POSTGRES_DB}?schema=<PROD-SCHEMA> DATABASE_URL=postgresql://<USER>:<PASS>@${DB_HOST}:<PORT>/${POSTGRES_DB}?schema=<PROD-SCHEMA>
# Redis # Redis
# Use this hostname on Docker
REDIS_HOST=redis REDIS_HOST=redis
REDIS_PORT=<placeholder> REDIS_PORT=<placeholder>