-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
49 lines (49 loc) · 1.08 KB
/
docker-compose.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
47
48
49
version: "3.2"
services:
backend:
build:
context: ./backend
args:
requirements: requirements/development.txt
# default requirements set to development (will override Dockerfile's default value)
environment:
- DJANGO_SETTINGS_MODULE=backend.settings.development
env_file:
- ./env/.env
volumes:
- ./backend:/backend
# reload server on code changes -- user doesn't have to manually restart Django server each time they make changes
networks:
- main
depends_on:
- db
frontend:
build:
context: ./frontend
networks:
- main
depends_on:
- backend
volumes:
- ./frontend:/frontend
- /frontend/node_modules
db:
image: postgres:alpine
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
networks:
- main
nginx:
image: nginx:alpine
volumes:
- ./nginx.dev.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- 80:80
networks:
- main
depends_on:
- frontend
- backend
networks:
main: