-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
43 lines (39 loc) · 842 Bytes
/
Copy pathdocker-compose-dev.yml
File metadata and controls
43 lines (39 loc) · 842 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
38
39
40
41
42
43
version: '3.8'
services:
db:
image: postgres:15
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: appdb
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
backend:
build:
context: ./backend
volumes:
- ./backend:/app
- uploads:/app/uploads
environment:
- DATABASE_URL=postgresql://user:password@db:5432/appdb
depends_on:
- db
ports:
- "8000:8000"
command: uvicorn routes:app --host 0.0.0.0 --port 8000
frontend:
build:
context: ./frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "5173:5173"
command: npm run dev -- --host 0.0.0.0 --port 5173
environment:
- VITE_API_URL=http://localhost:8000
volumes:
db_data:
uploads: