Skip to content

Commit 5625d81

Browse files
committed
correção internal server
1 parent 9aad0a9 commit 5625d81

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: '3.8'
2+
13
services:
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

5657
volumes:
57-
db_data:
58+
db_data:

textos/aws.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ DATABASE_URL=postgresql://postgres:123@postgres:5432/listacompras
5050
cd ~/ListaCompras
5151
git pull
5252
docker-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

0 commit comments

Comments
 (0)