Spaces:
Running
Running
| services: | |
| redis: | |
| image: redis:7-alpine | |
| restart: unless-stopped | |
| command: redis-server --appendonly yes | |
| volumes: | |
| - redis_data:/data | |
| web: | |
| build: . | |
| restart: unless-stopped | |
| command: gunicorn app:app --bind 0.0.0.0:10000 --workers 2 --timeout 180 | |
| env_file: | |
| - .env.production | |
| environment: | |
| PORT: 10000 | |
| REDIS_URL: redis://redis:6379/0 | |
| CELERY_BROKER_URL: redis://redis:6379/0 | |
| CELERY_RESULT_BACKEND: redis://redis:6379/0 | |
| ports: | |
| - "80:10000" | |
| depends_on: | |
| - redis | |
| volumes: | |
| - prospectiq_settings:/app/settings | |
| - prospectiq_learning_data:/app/learning_data | |
| - prospectiq_research_output:/app/services/research/pipe_output | |
| worker: | |
| build: . | |
| restart: unless-stopped | |
| command: celery -A celery_app.celery_app worker --loglevel=info | |
| env_file: | |
| - .env.production | |
| environment: | |
| REDIS_URL: redis://redis:6379/0 | |
| CELERY_BROKER_URL: redis://redis:6379/0 | |
| CELERY_RESULT_BACKEND: redis://redis:6379/0 | |
| depends_on: | |
| - redis | |
| volumes: | |
| - prospectiq_settings:/app/settings | |
| - prospectiq_learning_data:/app/learning_data | |
| - prospectiq_research_output:/app/services/research/pipe_output | |
| volumes: | |
| redis_data: | |
| prospectiq_settings: | |
| prospectiq_learning_data: | |
| prospectiq_research_output: | |