-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.01 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
53
version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.backend
ports:
- "8000:8000"
volumes:
- .:/app
- ./db.sqlite3:/app/db.sqlite3
environment:
- DJANGO_SETTINGS_MODULE=precostcalc.settings
- DEBUG=True
command: python manage.py runserver 0.0.0.0:8000
depends_on:
- db
networks:
- testgen-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- REACT_APP_API_URL=http://localhost:8000
command: npm start
networks:
- testgen-network
db:
image: postgres:15
environment:
- POSTGRES_DB=testgen_db
- POSTGRES_USER=testgen_user
- POSTGRES_PASSWORD=testgen_password
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- testgen-network
volumes:
postgres_data:
networks:
testgen-network:
driver: bridge