Python + PostgreSQL
Deploy Flask + Postgres in one command
DartUp auto-detects your Flask app, provisions a PostgreSQL database, and injects DATABASE_URL. No Dockerfiles. No database provisioning. No config.
From Flask app to production
Terminal
You:Deploy this Flask app with Postgres
Detected: Python Flask app (requirements.txt)
Creating PostgreSQL database...
Building container...
Injecting DATABASE_URL...
Claude:Deployed to
https://my-flask-app.dartup.dev
DATABASE_URL=postgresql://dartup:a8k2m...@dartup-my-flask-app-db:5432/myflaskapp
Everything is auto-configured
DartUp reads your project and handles the details.
Your Flask app:
# app.py
from flask import Flask
import os, psycopg2
app = Flask(__name__)
def get_db():
return psycopg2.connect(
os.environ["DATABASE_URL"]
)
What DartUp generates:
✓
Dockerfile — Python 3.12-slim, pip install, gunicorn
✓
PostgreSQL container — Postgres 16, auto-generated credentials
✓
DATABASE_URL — Injected into your app's environment
✓
SSL certificate — HTTPS enabled automatically
✓
Health checks — HTTP health endpoint, auto-restart on crash
✓
SECRET_KEY — Auto-generated if in your .env.example
Compare the workflow
Traditional Flask + Postgres deploy:
- 1. Write a Dockerfile
- 2. Write a docker-compose.yml
- 3. Provision a server (AWS/GCP/DO)
- 4. Install Docker on the server
- 5. Set up a reverse proxy (nginx)
- 6. Configure SSL (certbot)
- 7. Set up PostgreSQL
- 8. Configure firewall rules
- 9. Set up CI/CD pipeline
- 10. Debug for 2 hours
Time: 2-4 hours (if everything goes right)
DartUp:
- 1. "Deploy this Flask app with Postgres"
Time: 60 seconds
Works with your Python stack
Flask is just the start. DartUp supports the full Python ecosystem.
Flask
With gunicorn
FastAPI
With uvicorn
Django
With gunicorn
SQLAlchemy
ORM support
Alembic
Migrations
Celery
Background tasks
psycopg2
Postgres driver
asyncpg
Async Postgres
Ship your Flask app today
Stop wrestling with infrastructure. Deploy your Flask + Postgres app in one command and get back to building features.
Deploy Free →Free tier. Pro ($9/mo) adds managed databases.