-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
37 lines (35 loc) · 869 Bytes
/
docker-compose.dev.yml
File metadata and controls
37 lines (35 loc) · 869 Bytes
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
version: "3.9"
services:
backend:
build:
context: ./backend
ports:
- "8000:8000"
env_file:
- .env_sample
environment:
GEMINI_API_KEY: ${GEMINI_API_KEY}
volumes:
- ./backend:/app
- ./backend/data:/app/data
- ./backend/logs:/app/logs
- ./backend/pipeline.db:/app/pipeline.db
command: >
sh -c "pip install --no-cache-dir -r requirements.txt &&
uvicorn src.api.app:app --reload --host 0.0.0.0 --port 8000"
frontend:
build:
context: ./frontend
ports:
- "3000:3000"
env_file:
- .env_sample
environment:
GEMINI_API_KEY: ${GEMINI_API_KEY}
volumes:
- ./frontend:/app
- /app/node_modules # para evitar conflictos entre host y contenedor
command: >
sh -c "npm install && npm run dev"
depends_on:
- backend