File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
13services :
24 db :
35 image : postgres:15
@@ -18,8 +20,6 @@ services:
1820 dockerfile : backend/Dockerfile
1921 container_name : lista_backend
2022 restart : unless-stopped
21- env_file :
22- - backend/.env
2323 ports :
2424 - " 8000:8000"
2525 depends_on :
@@ -29,6 +29,7 @@ services:
2929 - ./backend:/app
3030 environment :
3131 DATABASE_URL : postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
32+ SECRET_KEY : ${SECRET_KEY} # ← adicione aqui, se usar no backend
3233 healthcheck :
3334 test : ["CMD-SHELL", "curl -f http://localhost:8000/ || exit 1"]
3435 interval : 5s
@@ -51,7 +52,7 @@ services:
5152 - ./frontend:/app
5253 environment :
5354 FASTAPI_BASE_URL : http://backend:8000
54- SECRET_KEY : ${SECRET_KEY} # ESSA LINHA FALTAVA — ERA O PROBLEMA
55+ SECRET_KEY : ${SECRET_KEY}
5556
5657volumes :
57- db_data :
58+ db_data:
Original file line number Diff line number Diff line change @@ -50,4 +50,9 @@ DATABASE_URL=postgresql://postgres:123@postgres:5432/listacompras
5050cd ~/ListaCompras
5151git pull
5252docker-compose down
53- docker-compose up -d --build
53+ docker-compose up -d --build
54+
55+ nano docker-compose.yml
56+ -------------
57+ rota
58+ http://13.59.205.141:5000
You can’t perform that action at this time.
0 commit comments