-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
52 lines (51 loc) · 1.09 KB
/
docker-compose.dev.yml
File metadata and controls
52 lines (51 loc) · 1.09 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
version: '3.9'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./backend:/app
- ./data:/app/data
env_file:
- backend/.env
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/studyquest
ports:
- '8000:8000'
depends_on:
- db
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
command: npm run dev -- --host 0.0.0.0 --port 5173
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- VITE_API_URL=http://localhost:8000
ports:
- '5173:5173'
depends_on:
- backend
db:
image: postgres:15-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=studyquest
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- '5432:5432'
adminer:
image: adminer
restart: unless-stopped
depends_on:
- db
ports:
- '8080:8080'
volumes:
postgres_data: