-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.dev.yml
46 lines (44 loc) · 945 Bytes
/
docker-compose.dev.yml
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
version: "3.7"
services:
backend:
container_name: backend
build: ./backend
volumes:
- ./backend:/app/backend
ports:
- "8000:8000"
env_file:
- ./backend/.env
stdin_open: true
tty: true
command: python manage.py runserver 0.0.0.0:8000
depends_on:
- db
db:
container_name: database
image: postgres:12.0-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./postgres/.env
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile.local
stdin_open: true
volumes:
- ./frontend:/app
# One-way volume to use node_modules from inside image
- /app/node_modules
ports:
- "3000:3000"
environment:
- NODE_ENV=development
depends_on:
- backend
command: npm start
volumes:
postgres_data:
django_static_volume:
react_static_volume: