-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
36 lines (36 loc) · 1.04 KB
/
docker-compose.prod.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
version: '3.7'
services:
web:
build:
context: ./server
dockerfile: Dockerfile.prod
env_file:
- .env/production.env
command: gunicorn config.wsgi:application --bind 0.0.0.0:8000
db:
env_file:
- .env/production.env
rq:
build:
context: ./server
dockerfile: Dockerfile.dev
env_file:
- .env/production.env
client:
build:
context: ./client
dockerfile: Dockerfile.prod
environment:
- NODE_ENV=production
env_file:
- .env/production.env
volumes:
- ./client/node_modules:/app/node_modules
- volume-static:/var/www/staticfiles:ro
- volume-media:/var/www/mediafiles:ro
- ./nginx/nginx.conf.template:/etc/nginx/templates/nginx.conf.template
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
ports:
- 80:80
- 443:443