added trade-hub role and files
This commit is contained in:
38
roles/trade_hub/files/trade-hub/podman-compose.yml
Normal file
38
roles/trade_hub/files/trade-hub/podman-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user