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: - "8071:8071" depends_on: - backend restart: unless-stopped volumes: pgdata: