
* docker-example overhaul Update docker-example with a more realistic multi-compose deployment, and also a more simplistic single-image deploy. * Use `uv` for faster bootstrapping * Separate simple and production-ready docker files * Split compose.yaml into 3 parts * Persist sqlite db and tls keys * Include postgres and redis * Include Adminer and redis-commander for adminstration * Suppose upload persistence * Update documentation * Update Caddyfile for compatibility with new Upload API * Simple Dockerfile: keep `reflex export --frontend-only` Pre-pack the resulting image with npm dependencies to reduce startup time * Simplify simple docker file to just use pip
25 lines
546 B
YAML
25 lines
546 B
YAML
# Use this override file to run the app in prod mode with postgres and redis
|
|
# docker compose -f compose.yaml -f compose.prod.yaml up -d
|
|
services:
|
|
db:
|
|
image: postgres
|
|
restart: always
|
|
environment:
|
|
POSTGRES_PASSWORD: secret
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis
|
|
restart: always
|
|
|
|
app:
|
|
environment:
|
|
DB_URL: postgresql+psycopg2://postgres:secret@db/postgres
|
|
REDIS_URL: redis://redis:6379
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
|
|
volumes:
|
|
postgres-data: |