-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.prod.yml
50 lines (44 loc) · 1.13 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Based on AWS providing separate DB and S3 services
# Also configured before switching from Server to Client side web rendering
version: '3.3'
services:
api:
build:
args:
- PYTHON_ENV=prod
ports:
- ${API_PORT}
environment:
- SECRET_KEY=${SECRET_KEY}
- DATABASE_URL=${DATABASE_URL}
- DEFAULT_FILE_STORAGE=${DEFAULT_FILE_STORAGE}
- LETSENCRYPT_HOST=${API_DOMAIN}
- VIRTUAL_HOST=${API_DOMAIN}
- VIRTUAL_PORT=${API_PORT}
web:
build:
dockerfile: Dockerfile.ci
ports:
- ${WEB_PORT}
environment:
- NODE_ENV=production
- LETSENCRYPT_HOST=${WEB_DOMAIN}
- VIRTUAL_HOST=${WEB_DOMAIN}
- VIRTUAL_PORT=${WEB_PORT}
proxy:
build:
args:
- API_DOMAIN=${API_DOMAIN}
ports:
- 443:443
volumes:
- '/etc/nginx/certs'
- '/etc/nginx/vhost.d'
- '/usr/share/nginx/html'
- '/var/run/docker.sock:/tmp/docker.sock:ro'
ssl:
image: jrcs/letsencrypt-nginx-proxy-companion
volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro'
environment:
- "DEFAULT_EMAIL=${DEFAULT_EMAIL}"