claim/docker-compose.pier.yml

52 lines
1.3 KiB
YAML

# Claim App — Pier Dashboard Container Service
# Project "claim" with 2 services: backend + frontend.
# MongoDB runs as a separate Pier database service named "claim-mongo"
# and is reachable at hostname "pier-claim-mongo" on pier-net.
#
# Auto-deploy: Pier clones this repo and builds from these Dockerfiles.
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
image: claim-backend:{{BUILD_TAG}}
container_name: pier-claim-backend
restart: unless-stopped
working_dir: /app/backend
command: ["python", "-m", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8002"]
env_file: .env
environment:
MONGO_URL: mongodb://pier-claim-mongo:27017
DB_NAME: claim
PORT: "8002"
FRONTEND_URL: ""
CORS_ORIGINS: ""
volumes:
- "claim_uploads:/app/backend/claim_files"
- "claim_attach:/app/backend/claim_attachments"
networks:
- pier-net
depends_on: []
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
image: claim-frontend:{{BUILD_TAG}}
container_name: pier-claim-frontend
restart: unless-stopped
ports:
- "127.0.0.1:8082:80"
networks:
- pier-net
depends_on:
- backend
volumes:
claim_uploads:
claim_attach:
networks:
pier-net:
external: true