-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
42 lines (39 loc) · 929 Bytes
/
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
version: "3.3"
services:
db:
image: postgres:14.0-alpine
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
web:
build: ./app
command: gunicorn -b 0.0.0.0 -p 8000 food_bank_survey.wsgi:application
# command: python manage.py runserver
volumes:
- ./app/:/usr/src/app/
- static_volume:/usr/src/app/django_static
ports:
- "8000:8000"
expose:
- 8000
env_file:
- ./.env.dev
depends_on:
- db
frontend:
build: ./frontend/food_bank_survey
volumes:
- ./frontend/food_bank_survey:/app
# One-way volume to use node_modules from inside image
- /app/node_modules
- static_volume:/usr/src/app/django_static
- /etc/nginx/conf.d
ports:
- "80:80"
environment:
- NODE_ENV=development
depends_on:
- web
volumes:
static_volume: {}