deploy
This commit is contained in:
@@ -25,3 +25,13 @@ FRONTEND_URL=http://localhost:5173
|
||||
GOOGLE_CLIENT_ID=your_google_client_id_here
|
||||
GOOGLE_CLIENT_SECRET=your_google_client_secret_here
|
||||
GOOGLE_REDIRECT_URI=http://localhost:8000/api/integrations/google/callback
|
||||
|
||||
# === PRODUCTION (Dokploy) ===
|
||||
# SECRET_KEY=<python -c "import secrets; print(secrets.token_hex(32))">
|
||||
# FRONTEND_URL=https://space.roa.romfast.ro
|
||||
# SMTP_ENABLED=true
|
||||
# SMTP_HOST=smtp.example.com
|
||||
# SMTP_PORT=587
|
||||
# SMTP_USER=user@example.com
|
||||
# SMTP_PASSWORD=parola
|
||||
# SMTP_FROM_ADDRESS=rezervari@romfast.ro
|
||||
|
||||
@@ -7,8 +7,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN chmod +x entrypoint.sh
|
||||
|
||||
RUN mkdir -p uploads
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
6
backend/entrypoint.sh
Normal file
6
backend/entrypoint.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
echo "[entrypoint] Running database seed..."
|
||||
python seed_db.py
|
||||
echo "[entrypoint] Starting application..."
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user