mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-11 17:29:14 +02:00
1.6 KiB
1.6 KiB
Deployment Guide
Infrastructure Architecture
PriceFlow is designed to be deployed using Docker Compose. The stack consists of:
- App: The main FastAPI backend and application logic.
- Frontend: Served typically via Nginx or embedded (in this setup, check docker-compose for service details).
- Database: PostgreSQL container.
- Browserless: Headless Chrome instance for scraping.
Services & Ports
| Service | Internal Port | Host Port | Description |
|---|---|---|---|
| PriceFlow App | 8555 | 8555 | Main Application API & UI Serving |
| PostgreSQL | 5432 | 5488 | Database Access |
| Browserless | 3000 | 3012 | Headless Browser Debugger |
Deployment Steps
-
Prepare the Host: Ensure Docker and Docker Compose are installed.
-
Configuration:
- Copy
.env.exampleto.env. - Set critical variables:
DATABASE_URL: Connection string for PostgreSQL.BROWSERLESS_URL: WebSocket URL for Browserless.OPENAI_API_KEY/ Other AI Keys: For AI analysis features.
- Copy
-
Launch:
docker compose up -d -
Access:
- Application:
http://localhost:8555
- Application:
Networking
The application uses an external Docker network named nginx_default. Ensure this is created:
docker network create nginx_default
Troubleshooting
- Scraping Issues: Check
Browserlesscontainer logs. Ensure the app can reach the browserless service URL. - Database Connections: Verify the
DATABASE_URLmatches the container name and credentials indocker-compose.yml.