working with login and building inventory
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user