docker-compose.yml + .env and setup for postgres, jwt, hostnames + healthchecks

This commit is contained in:
2024-08-03 03:28:03 +03:00
parent 19965ab5bd
commit 760110cb86
2 changed files with 53 additions and 6 deletions

22
.env Normal file
View File

@@ -0,0 +1,22 @@
# Trusted hostname
HOSTNAME=localhost
# --- Container ports and hostnames ---
BACKEND_HOST=personal-site-backend
FRONTEND_HOST=personal-site-frontend
DB_HOST=personal-site-db
# --- Database settings ---
DB_USER=postgres
DB_PASSWORD=postgres
DB_DB=data
# --- JWT token settings ---
JWT_SECRET=ThisValueIsObviouslyVerySecret
JWT_EXPIRATION_ACCESS=2m # Expiration time for access tokens
JWT_EXPIRATION_REFRESH=7d # Expiration time for refresh tokens
JWT_ISSUER=personal-site
JWT_AUDIENCE=users