-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
44 lines (38 loc) · 1.3 KB
/
.env.example
File metadata and controls
44 lines (38 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ================================
# 🌐 CONFIGURAÇÕES DA APLICAÇÃO
# ================================
PROJECT_NAME=apiWorkoutPython
API_V1_STR=/api/v1
ENVIRONMENT=development
DEBUG=True
LOG_LEVEL=info
# Host e porta do FastAPI dentro do container (Gunicorn/Uvicorn)
APP_HOST=0.0.0.0
APP_PORT=8000
# ================================
# 🛢️ CONFIGURAÇÕES DO BANCO DE DADOS
# ================================
# Dados para conexão com PostgreSQL (em docker-compose)
POSTGRES_SERVER=db
POSTGRES_PORT=5432
POSTGRES_DB=workout_db
POSTGRES_USER=workout_user
POSTGRES_PASSWORD=workout_password
# URL completa para SQLAlchemy
DATABASE_URL=postgresql+psycopg2://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_SERVER}:${POSTGRES_PORT}/${POSTGRES_DB}
# ================================
# 🐳 CONFIGURAÇÕES DO DOCKER
# ================================
# Nome do serviço principal da aplicação no docker-compose
DOCKER_APP_SERVICE=api
# ================================
# 🧪 TESTES E AMBIENTE DE CI
# ================================
# Usado para os testes automatizados com Pytest
TEST_DATABASE_URL=postgresql+psycopg2://workout_user:workout_password@db:5432/workout_db_test
# ================================
# 📝 MISC
# ================================
# Tempo limite de requisições Gunicorn
WORKERS=4
TIMEOUT=120