Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-example overhaul #2690

Merged
merged 3 commits into from
Mar 5, 2024
Merged

docker-example overhaul #2690

merged 3 commits into from
Mar 5, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Feb 22, 2024

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

Have a go with my test app: https://github.com/masenf/repro-datetime-model/tree/main

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
Pre-pack the resulting image with npm dependencies to reduce startup time

# Pass `--build-arg API_URL=http://app.example.com:8000` during build
ARG API_URL
ARG uv=/root/.cargo/bin/uv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we focus on simplicity for this Dockerfile and use just the basic tools? I think it would be nice if the base one we had just minimized lines of code to get it working, and we can have another more optimized one.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to just using pip

docker-example/Dockerfile Show resolved Hide resolved
@masenf masenf merged commit e8faec7 into main Mar 5, 2024
45 checks passed
@masenf masenf deleted the masenf/update-docker-example branch March 5, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants