modified: Dockerfile
modified: README.md modified: app.py
This commit is contained in:
20
README.md
20
README.md
@@ -58,6 +58,26 @@ docker run --rm -p 5000:5000 devanturas-site
|
||||
# Open http://localhost:5000
|
||||
```
|
||||
|
||||
## Deploy on Coolify
|
||||
|
||||
You can deploy this app on Coolify using the existing Dockerfile:
|
||||
|
||||
1) Create a new Application in Coolify and choose "Dockerfile" as the build type.
|
||||
|
||||
2) Point it to your repository and path where this project lives.
|
||||
|
||||
3) Environment variables (set in Coolify UI):
|
||||
- PORT: Coolify usually sets this automatically; the container binds to `0.0.0.0:$PORT`.
|
||||
- FLASK_DEBUG=false (optional)
|
||||
- WEB_CONCURRENCY=3 (optional Gunicorn workers override)
|
||||
- DEMO=... (example passthrough, Dockerfile includes `ENV DEMO=$DEMO`)
|
||||
|
||||
4) Exposed port: 5000 (Dockerfile uses `EXPOSE 5000` and `CMD` binds to `$PORT` with a default of 5000.)
|
||||
|
||||
5) Health check: GET /health should return 200 with `{ "status": "ok" }`.
|
||||
|
||||
No other platform-specific files are required. Coolify will build the image from the Dockerfile and run it with the configured environment.
|
||||
|
||||
## Customization
|
||||
- Add more projects by updating the data structures in `app.py` under `/projects` and the detail routes.
|
||||
- To add Wiki/Issues links per project, populate the `links` dict with `wiki` and `issues` keys. If a project should not expose these, simply omit the keys and the template won’t render them.
|
||||
|
||||
Reference in New Issue
Block a user