-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (34 loc) · 807 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (34 loc) · 807 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
services:
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=ticket_db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=pass
backend:
build: ./backend
command: >
sh -c "python manage.py migrate &&
python manage.py runserver 0.0.0.0:8000"
volumes:
- ./backend:/app
ports:
- "8000:8000"
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY}
- DATABASE_URL=${DATABASE_URL:-postgres://user:pass@db:5432/ticket_db}
depends_on:
- db
frontend:
build: ./frontend
ports:
- "3000:5173"
volumes:
- ./frontend:/app
stdin_open: true
environment:
- VITE_API_URL=${VITE_API_URL:-http://localhost:8000/api}
volumes:
postgres_data: