File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ services :
2+   web :
3+     image : 4ndresor/flashcards_api 
4+     container_name : fastapi_app 
5+     command : uvicorn src.main:app --host 0.0.0.0 --port 8000 
6+     env_file :
7+       - .env 
8+     ports :
9+       - " 8000:8000" 
10+     depends_on :
11+       - postgres 
12+       - redis 
13+ 
14+   redis :
15+     image : redis:7-alpine 
16+     container_name : redis 
17+     ports :
18+       - " 6379:6379" 
19+ 
20+   celery :
21+     image : 4ndresor/flashcards_api 
22+     container_name : celery_worker 
23+     command : celery -A celery_worker.celery worker --loglevel=info 
24+     env_file :
25+       - .env 
26+     depends_on :
27+       - redis 
28+ 
29+   celery-flower :
30+     image : mher/flower 
31+     container_name : celery-flower 
32+     ports :
33+       - " 5555:5555" 
34+     command : celery --broker=redis://redis:6379/0 flower --port=5555 
35+     env_file :
36+       - .env 
37+     depends_on :
38+       - redis 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments