feat: wizard config volume integration

- entrypoint.sh: wait for config file before starting uvicorn
- config.py: resolve DB URL from wizard config volume
- init_wizard.py: read config from file instead of HTTP
- Dockerfile: use entrypoint.sh
This commit is contained in:
zhi
2026-03-06 13:46:38 +00:00
parent 4b20444a5e
commit c1288b5fa9
4 changed files with 95 additions and 41 deletions

View File

@@ -15,9 +15,10 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
RUN chmod +x entrypoint.sh
# Expose port
EXPOSE 8000
# Run the application
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
# Wait for wizard config, then start uvicorn
ENTRYPOINT ["./entrypoint.sh"]