first commit

This commit is contained in:
2025-11-19 01:09:25 -03:00
parent e7a380f36e
commit be10a888fb
28 changed files with 2481 additions and 464 deletions

View File

@@ -1,19 +1,18 @@
version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: checklist-db
environment:
POSTGRES_DB: checklist_db
POSTGRES_USER: checklist_user
POSTGRES_PASSWORD: checklist_pass_2024
POSTGRES_DB: ${POSTGRES_DB:-checklist_db}
POSTGRES_USER: ${POSTGRES_USER:-checklist_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-checklist_pass_2024}
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U checklist_user"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-checklist_user} -d ${POSTGRES_DB:-checklist_db}"]
interval: 10s
timeout: 5s
retries: 5
@@ -22,10 +21,10 @@ services:
build: ./backend
container_name: checklist-backend
environment:
DATABASE_URL: postgresql://checklist_user:checklist_pass_2024@postgres:5432/checklist_db
DATABASE_URL: postgresql://${POSTGRES_USER:-checklist_user}:${POSTGRES_PASSWORD:-checklist_pass_2024}@postgres:5432/${POSTGRES_DB:-checklist_db}
SECRET_KEY: ${SECRET_KEY:-your-secret-key-change-in-production-min-32-chars}
OPENAI_API_KEY: ${OPENAI_API_KEY}
ENVIRONMENT: development
ENVIRONMENT: ${ENVIRONMENT:-development}
ports:
- "8000:8000"
volumes: