-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
56 lines (53 loc) · 1.07 KB
/
docker-compose.yaml
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
54
55
56
version: "3.2"
services:
db:
restart: always
image: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- db-net
backend:
restart: always
container_name: backend
command : pipenv run ./manage.py runserver 0.0.0.0:8000
build:
context: ./backend/
dockerfile: Dockerfile
ports:
- "8000:8000"
depends_on:
- db
networks:
- db-net
environment:
- POSTGRES_NAME=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=db
- DEBUG='true'
volumes:
- ./backend:/app/backend
frontend:
restart: always
command : npm start
container_name: front
build:
context: ./frontend/
dockerfile: Dockerfile
ports:
- "3000:3000"
stdin_open: true
depends_on:
- backend
volumes:
- ./frontend:/app/frontend
networks:
db-net:
driver: bridge