-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (86 loc) · 2.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
92 lines (86 loc) · 2.27 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: hogar
services:
app:
build:
context: .
dockerfile: Dockerfile
target: dev
ports:
- "3100:3000"
volumes:
- .:/app
- node_modules:/app/node_modules
environment:
- DATABASE_URL=postgresql://hogar:hogar_dev@db:5432/hogar
- S3_ENDPOINT=http://storage:9000
- S3_ACCESS_KEY=minioadmin
- S3_SECRET_KEY=minioadmin
- S3_BUCKET=hogar-uploads
- S3_REGION=us-east-1
- S3_PUBLIC_ENDPOINT=http://localhost:9000
- REDIS_URL=redis://redis:6379
- AI_PROVIDER=${AI_PROVIDER:-}
- REPLICATE_API_TOKEN=${REPLICATE_API_TOKEN:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- LOCAL_AI_ENDPOINT=${LOCAL_AI_ENDPOINT:-}
- LOCAL_AI_MODEL=${LOCAL_AI_MODEL:-}
- LOCAL_AI_API_KEY=${LOCAL_AI_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
- AUTH_SECRET=${AUTH_SECRET:-hogar-dev-secret-change-in-production-2026}
- AUTH_URL=http://localhost:3100
- NEXT_TELEMETRY_DISABLED=1
depends_on:
db:
condition: service_healthy
storage:
condition: service_started
redis:
condition: service_started
command: sh -c "npx prisma migrate deploy && npm run dev"
db:
image: postgres:16-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: hogar
POSTGRES_PASSWORD: hogar_dev
POSTGRES_DB: hogar
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hogar"]
interval: 5s
timeout: 5s
retries: 5
storage:
image: minio/minio:latest
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- minio_data:/data
command: server /data --console-address ":9001"
createbucket:
image: minio/mc:latest
depends_on:
- storage
entrypoint: >
/bin/sh -c "
sleep 3;
mc alias set local http://storage:9000 minioadmin minioadmin;
mc mb --ignore-existing local/hogar-uploads;
mc anonymous set download local/hogar-uploads;
exit 0;
"
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
pgdata:
minio_data:
node_modules: