forked from DeepMicroscopy/Exact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
47 lines (45 loc) · 1.05 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
version: '3.7'
services:
web:
build:
context: ./exact
dockerfile: Dockerfile.prod
command: gunicorn --workers=6 --threads=6 --graceful-timeout=3000 -t 3000 exact.wsgi:application --bind 0.0.0.0:8000
volumes:
- ./exact/images:/home/app/web/images
- static_volume:/home/app/web/static
- ./exact/media:/home/app/web/media #media_volume
expose:
- 8000
env_file:
- ./env.prod
depends_on:
- db
db:
image: postgres:12.0-alpine
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./env.prod.db
nginx:
build: ./nginx
volumes:
- static_volume:/home/app/web/static
- ./exact/media:/home/app/web/media #media_volume
ports:
- 1337:80
depends_on:
- web
redis:
image: redis:6.2.1-alpine
volumes:
- ./redis/redis.conf:/redis.conf
ports:
- 6379:6379
command: [ "redis-server", "/redis.conf" ]
volumes:
postgres_data:
static_volume:
media_volume: