-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (37 loc) · 847 Bytes
/
docker-compose.yaml
File metadata and controls
41 lines (37 loc) · 847 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
# issue-tracker/docker-compose.yml
version: '3.8'
services:
db:
image: postgres:16-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_DB=issuedb #saas
- POSTGRES_USER=user #postgres
- POSTGRES_PASSWORD=password
- POSTGRES_HOSTNAME=postgres
- POSTGRES_PORT=5432
ports:
- "5432:5432"
backend:
build: ./backend
command: python manage.py runserver 0.0.0.0:8000
volumes:
- ./backend/:/usr/src/app/
ports:
- "8000:8000"
env_file:
- ./backend/.env.dev
depends_on:
- db
frontend:
build: ./frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "5173:5173"
environment:
- CHOKIDAR_USEPOLLING=true # Helps with hot-reloading in Docker
volumes:
postgres_data: