|
|
services: |
|
|
|
|
|
- type: redis |
|
|
name: redis |
|
|
plan: free |
|
|
|
|
|
|
|
|
- type: web |
|
|
name: backend |
|
|
plan: free |
|
|
env: docker |
|
|
dockerfilePath: ./backend/Dockerfile |
|
|
dockerContext: . |
|
|
|
|
|
healthCheckPath: / |
|
|
envVars: |
|
|
- key: DATABASE_URL |
|
|
fromDatabase: |
|
|
name: YOUR_NEON_DB_NAME |
|
|
property: connectionString |
|
|
- key: CELERY_BROKER_URL |
|
|
fromService: |
|
|
type: redis |
|
|
name: redis |
|
|
property: connectionString |
|
|
- key: CELERY_RESULT_BACKEND |
|
|
fromService: |
|
|
type: redis |
|
|
name: redis |
|
|
property: connectionString |
|
|
- key: GOOGLE_API_KEY |
|
|
sync: false |
|
|
|
|
|
|
|
|
- type: worker |
|
|
name: worker |
|
|
plan: free |
|
|
env: docker |
|
|
dockerfilePath: ./backend/Dockerfile |
|
|
dockerContext: . |
|
|
|
|
|
startCommand: python -m celery -A celery_worker.celery worker --loglevel=info |
|
|
envVars: |
|
|
- key: DATABASE_URL |
|
|
fromDatabase: |
|
|
name: YOUR_NEON_DB_NAME |
|
|
property: connectionString |
|
|
- key: CELERY_BROKER_URL |
|
|
fromService: |
|
|
type: redis |
|
|
name: redis |
|
|
property: connectionString |
|
|
- key: CELERY_RESULT_BACKEND |
|
|
fromService: |
|
|
type: redis |
|
|
name: redis |
|
|
property: connectionString |
|
|
- key: GOOGLE_API_KEY |
|
|
sync: false |