-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
44 lines (40 loc) · 894 Bytes
/
Copy pathdocker-compose-dev.yml
File metadata and controls
44 lines (40 loc) · 894 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
42
43
44
version: "3.9"
services:
postgres_db:
image: postgres:11
volumes:
- local_postgres_db:/var/lib/postgresql/data:z
container_name: bgl-postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
django:
build:
context: .
dockerfile: ./docker/django/Dockerfile
command: ./docker/django/setup.sh
volumes:
- ./backend:/app
container_name: bgl-django
ports:
- "8000:8000"
expose:
- "8000"
depends_on:
- postgres_db
frontend:
build:
context: .
dockerfile: ./docker/frontend/Dockerfile
command: ./docker/frontend_setup.sh
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
container_name: bgl-frontend
ports:
- "8080:8080"
depends_on:
- django
volumes:
local_postgres_db: {}