-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
46 lines (42 loc) · 1.06 KB
/
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.8'
services:
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile.dev
volumes:
- ./backend/:/usr/src/app/
- ipython_data_local:/root/.ipython/profile_default
ports:
- "8000:8000" # Django app ports
- "4000:4000" # Django debugger ports
env_file:
- ./backend/.env
restart: always
depends_on:
- db
command: python3 manage.py runserver 0.0.0.0:8000
frontend:
build: ./frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "3000:3000"
environment:
- NODE_ENV=development
depends_on:
- backend
command: npm start
db:
container_name: db
image: postgres:12.0-alpine
restart: unless-stopped
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./db/.env
volumes:
postgres_data:
ipython_data_local: {}