openai service and basic tables with migrations

This commit is contained in:
Lucas Tettamanti
2026-01-01 23:20:13 -03:00
parent 5c67b27859
commit 5e9cc8fe1a
9 changed files with 172 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
version: "3.9"
services:
app:
image: node:20-alpine
@@ -5,7 +7,10 @@ services:
command: sh -c "npm install && npm run dev"
ports:
- "3000:3000"
env_file:
- .env
environment:
- NODE_ENV=development
- PORT=3000
- DATABASE_URL=postgres://${POSTGRES_USER:-botino}:${POSTGRES_PASSWORD:-botino}@db:5432/${POSTGRES_DB:-botino}
- REDIS_URL=redis://redis:6379
@@ -13,12 +18,16 @@ services:
- .:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- db
- redis
db:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:16-alpine
env_file:
- .env
environment:
- POSTGRES_DB=${POSTGRES_DB:-botino}
- POSTGRES_USER=${POSTGRES_USER:-botino}