@@ -56,8 +56,8 @@ services:
5656 # backend fastapi
5757 backend :
5858 build :
59- context : .
60- dockerfile : Dockerfile
59+ context : ..
60+ dockerfile : docker/ Dockerfile
6161 container_name : cfd_backend
6262 ports :
6363 - " 8000:8000"
@@ -70,9 +70,9 @@ services:
7070 CELERY_BROKER_URL : redis://redis:6379
7171 CELERY_RESULT_BACKEND : redis://redis:6379
7272 volumes :
73- - ./backend:/app
74- - ./scripts:/app/scripts
75- - ./output :/app/output
73+ - .. /backend:/app
74+ - .. /scripts:/app/scripts
75+ - ../generated :/app/generated
7676 depends_on :
7777 postgres :
7878 condition : service_healthy
@@ -85,15 +85,15 @@ services:
8585 # frontend react
8686 frontend :
8787 build :
88- context : .
89- dockerfile : Dockerfile.frontend
88+ context : ..
89+ dockerfile : docker/ Dockerfile.frontend
9090 container_name : cfd_frontend
9191 ports :
9292 - " 5173:5173"
9393 environment :
9494 VITE_API_URL : http://localhost:8000
9595 volumes :
96- - ./frontend:/app
96+ - .. /frontend:/app
9797 - /app/node_modules
9898 depends_on :
9999 - backend
@@ -102,8 +102,8 @@ services:
102102 # celery worker para tarefas assíncronas
103103 celery-worker :
104104 build :
105- context : .
106- dockerfile : Dockerfile
105+ context : ..
106+ dockerfile : docker/ Dockerfile
107107 container_name : cfd_celery_worker
108108 environment :
109109 DATABASE_URL : postgresql://postgres:postgres123@postgres:5432/cfd_pipeline
@@ -114,9 +114,9 @@ services:
114114 CELERY_BROKER_URL : redis://redis:6379
115115 CELERY_RESULT_BACKEND : redis://redis:6379
116116 volumes :
117- - ./backend:/app
118- - ./scripts:/app/scripts
119- - ./output :/app/output
117+ - .. /backend:/app
118+ - .. /scripts:/app/scripts
119+ - ../generated :/app/generated
120120 depends_on :
121121 postgres :
122122 condition : service_healthy
@@ -127,16 +127,16 @@ services:
127127 # celery beat para tarefas agendadas
128128 celery-beat :
129129 build :
130- context : .
131- dockerfile : Dockerfile
130+ context : ..
131+ dockerfile : docker/ Dockerfile
132132 container_name : cfd_celery_beat
133133 environment :
134134 DATABASE_URL : postgresql://postgres:postgres123@postgres:5432/cfd_pipeline
135135 REDIS_URL : redis://redis:6379
136136 CELERY_BROKER_URL : redis://redis:6379
137137 CELERY_RESULT_BACKEND : redis://redis:6379
138138 volumes :
139- - ./backend:/app
139+ - .. /backend:/app
140140 depends_on :
141141 postgres :
142142 condition : service_healthy
0 commit comments