register and sign in pages

This commit is contained in:
2026-09-22 00:50:30 +05:00
parent f313867653
commit 78d04f75d1
96 changed files with 6383 additions and 109 deletions
+23 -13
View File
@@ -2,12 +2,18 @@ services:
database:
image: postgres:16
hostname: database
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DATABASE:-sarlink}
POSTGRES_USER: ${POSTGRES_USER:-sarlink}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER:-sarlink}"]
interval: 5s
timeout: 3s
retries: 10
backend:
build:
@@ -15,36 +21,40 @@ services:
dockerfile: .build/prod/api.Dockerfile
hostname: backend
image: git.shihaam.dev/sarlink/sarlinkportal/backend
restart: unless-stopped
env_file:
- ../../backend/.env
volumes:
- media:/app/media
depends_on:
- database
database:
condition: service_healthy
frontend:
build:
context: ../../
dockerfile: .build/prod/frontend.Dockerfile
hostname: frontend
image: git.shihaam.dev/sarlink/sarlinkportal/frontend
# Background tasks: same image, procrastinate worker instead of gunicorn.
worker:
image: git.shihaam.dev/sarlink/sarlinkportal/backend
restart: unless-stopped
command: python manage.py procrastinate worker
env_file:
- ../../frontend/.env
- ../../backend/.env
volumes:
- media:/app/media
depends_on:
- backend
nginx:
# The only published container: static SPA + reverse proxy to the API.
web:
build:
context: ../../
dockerfile: .build/prod/nginx.Dockerfile
hostname: nginx
image: git.shihaam.dev/sarlink/sarlinkportal/nginx
dockerfile: .build/prod/web.Dockerfile
hostname: web
image: git.shihaam.dev/sarlink/sarlinkportal/web
restart: unless-stopped
ports:
- "8080:80"
volumes:
- media:/app/media:ro
depends_on:
- frontend
- backend
volumes: