-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevelopment.yml
More file actions
55 lines (50 loc) · 1.2 KB
/
development.yml
File metadata and controls
55 lines (50 loc) · 1.2 KB
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
version: '3.8'
services:
react:
build:
context: ./
dockerfile: ./dockerfiles/development/Dockerfile.react
expose:
- 3000
volumes:
- ./react/public:/react-app/public
- ./react/src:/react-app/src
- /react-app/node_modules
django:
build:
context: ./
dockerfile: ./dockerfiles/development/Dockerfile.django
command: gunicorn project.wsgi:application --bind 0.0.0.0:8000 --reload
depends_on:
- database
env_file:
- ./env/development.env
expose:
- 8000
volumes:
- ./django/project:/django/project
- ./django/app:/django/app
- static_volume:/django/staticfiles
- media_volume:/django/mediafiles
database:
image: postgres
env_file:
- ./env/development.env
volumes:
- database_volume:/var/lib/postgresql/data/
nginx:
image: nginx:alpine
command: ['nginx-debug', '-g', 'daemon off;']
depends_on:
- react
- django
ports:
- 80:80
volumes:
- ./nginx/development/:/etc/nginx/conf.d
- static_volume:/home/app/web/staticfiles
- media_volume:/home/app/web/mediafiles
volumes:
database_volume:
static_volume:
media_volume: