Skip to content

Commit 0fc353b

Browse files
authored
Update .env.example
1 parent fff81d1 commit 0fc353b

1 file changed

Lines changed: 43 additions & 7 deletions

File tree

.env.example

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,44 @@
1-
POSTGRES_USER=workout
2-
POSTGRES_PASSWORD=workout
3-
POSTGRES_DB=workout_db
4-
POSTGRES_HOST=localhost
1+
# ================================
2+
# 🌐 CONFIGURAÇÕES DA APLICAÇÃO
3+
# ================================
4+
PROJECT_NAME=apiWorkoutPython
5+
API_V1_STR=/api/v1
6+
ENVIRONMENT=development
7+
DEBUG=True
8+
LOG_LEVEL=info
9+
10+
# Host e porta do FastAPI dentro do container (Gunicorn/Uvicorn)
11+
APP_HOST=0.0.0.0
12+
APP_PORT=8000
13+
14+
# ================================
15+
# 🛢️ CONFIGURAÇÕES DO BANCO DE DADOS
16+
# ================================
17+
# Dados para conexão com PostgreSQL (em docker-compose)
18+
POSTGRES_SERVER=db
519
POSTGRES_PORT=5432
6-
POSTGRES_DSN=postgresql+asyncpg://workout:workout@localhost:5432/workout_db
7-
DATABASE_URL=postgresql+asyncpg://workout:workout@localhost:5432/workout_db
8-
APP_ENV=development
20+
POSTGRES_DB=workout_db
21+
POSTGRES_USER=workout_user
22+
POSTGRES_PASSWORD=workout_password
23+
24+
# URL completa para SQLAlchemy
25+
DATABASE_URL=postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_SERVER}:${POSTGRES_PORT}/${POSTGRES_DB}
26+
27+
# ================================
28+
# 🐳 CONFIGURAÇÕES DO DOCKER
29+
# ================================
30+
# Nome do serviço principal da aplicação no docker-compose
31+
DOCKER_APP_SERVICE=api
32+
33+
# ================================
34+
# 🧪 TESTES E AMBIENTE DE CI
35+
# ================================
36+
# Usado para os testes automatizados com Pytest
37+
TEST_DATABASE_URL=postgresql+psycopg2://workout_user:workout_password@db:5432/workout_db_test
38+
39+
# ================================
40+
# 📝 MISC
41+
# ================================
42+
# Tempo limite de requisições Gunicorn
43+
WORKERS=4
44+
TIMEOUT=120

0 commit comments

Comments
 (0)