forked from DeepMicroscopy/Exact
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.iSyntax.prod.yml
More file actions
42 lines (40 loc) · 953 Bytes
/
docker-compose.iSyntax.prod.yml
File metadata and controls
42 lines (40 loc) · 953 Bytes
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
version: '3.7'
services:
web:
build:
context: ./exact
dockerfile: Dockerfile.iSyntax.prod
command: gunicorn --workers=1 --threads=1 --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
ports:
- 3001:3001
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
volumes:
postgres_data:
static_volume:
media_volume: