working with login and building inventory

This commit is contained in:
2026-11-12 11:40:31 -07:00
parent d11e5e70c7
commit 0a93925e11
45 changed files with 2389 additions and 77 deletions

View File

@@ -1,7 +1,28 @@
services:
db:
image: docker.io/library/postgres:16-alpine
environment:
POSTGRES_USER: sc_inventory
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-sc_inventory_dev}
POSTGRES_DB: sc_inventory
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sc_inventory -d sc_inventory"]
interval: 5s
timeout: 3s
retries: 20
restart: unless-stopped
backend:
build: ./backend
image: localhost/sc-inventory-backend:latest
environment:
DATABASE_URL: postgresql+psycopg://sc_inventory:${POSTGRES_PASSWORD:-sc_inventory_dev}@db:5432/sc_inventory
DB_WAIT_SECONDS: "60"
COOKIE_SECURE: ${COOKIE_SECURE:-false}
depends_on:
- db
restart: unless-stopped
frontend:
@@ -12,3 +33,6 @@ services:
depends_on:
- backend
restart: unless-stopped
volumes:
pgdata: