forked from mikeyk/saveourfaves-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (31 loc) · 1.06 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
version: '3.7'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
# We run a pip install to catch cases where requirements were added but a Docker build hasn't run yet
command: bash -c "pip install -r requirements.txt && python manage.py runserver 0.0.0.0:8000"
working_dir: /usr/local/site/
volumes:
- ./backend/:/usr/local/site/
- ../certificates/private_keys.py:/usr/local/site/carebackend/private_keys.py
ports:
- 8000:8000
env_file:
- ./.env.dev
frontend:
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- "80:80"
- "443:443"
depends_on:
- backend
volumes:
- ./nginx/build/:/usr/local/build/
- ../certificates/letsencrypt/:/etc/letsencrypt/
- ./backend/carebackend/django-static/:/usr/local/django-static/
- ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
- ../certificates/nginx_auth:/etc/nginx/nginx_auth