created new role

This commit is contained in:
boxswapper
2026-11-13 12:26:24 -07:00
parent 632aee934f
commit 6d90e131b2
47 changed files with 424 additions and 136 deletions

View File

@@ -0,0 +1,38 @@
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:
build: ./frontend
image: localhost/sc-inventory-frontend:latest
ports:
- "8080:80"
depends_on:
- backend
restart: unless-stopped
volumes:
pgdata: