-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.production.run.yaml
54 lines (52 loc) · 1.11 KB
/
docker-compose.production.run.yaml
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
version: "3.7"
services:
https-portal:
image: steveltn/https-portal:1
ports:
- '80:80'
- '443:443'
depends_on:
- nginx
- app
links:
- nginx
- app
restart: always
environment:
DOMAINS: 'owaranai.tokyo -> http://nginx:80, api.owaranai.tokyo -> http://app:80'
STAGE: 'production'
volumes:
- ./var/lib/ssl_certs:/var/lib/https-portal
app:
image: homata/owaranai-meter_app
command: gunicorn config.wsgi:application --bind 0.0.0.0:80
working_dir: /usr/src/app/
volumes:
- ./app:/usr/src/app
- static_volume:/usr/src/app/staticfiles
- media_volume:/usr/src/app/mediafiles
expose:
- 80
env_file:
- ./.env.production
depends_on:
- db
db:
image: postgres:12.0-alpine
volumes:
- ./var/db/data:/var/lib/postgresql/data/
env_file:
- ./.env.production
nginx:
image: homata/owaranai-meter_nginx
expose:
- 80
volumes:
- media_volume:/usr/src/app/mediafiles
depends_on:
- app
links:
- app
volumes:
static_volume:
media_volume: