-
Notifications
You must be signed in to change notification settings - Fork 11
/
HiCAL.yml
59 lines (54 loc) · 1.27 KB
/
HiCAL.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
51
52
53
54
55
56
57
58
59
version: '2'
volumes:
postgres_data_local: {}
postgres_backup_local: {}
services:
cal:
build: ./CALEngine/
container_name: cal
command: bash -c "cd /src; make clean; DEBUG=${DEBUG} make bmi_fcgi && /usr/bin/spawn-fcgi -p 8002 -n -- ./bmi_fcgi --doc-features ${DOC_BIN} --para-features ${PARA_BIN} --threads 8"
volumes:
- ./CALEngine:/src
- ./data:/data
expose:
- "8002"
django:
build:
context: ./HiCALWeb
dockerfile: ./compose/local/django/Dockerfile
depends_on:
- postgres
volumes:
- ./HiCALWeb:/app
environment:
- POSTGRES_USER=hicalweb
- USE_DOCKER=yes
expose:
- "8001"
command: /start.sh
postgres:
build:
context: ./HiCALWeb
dockerfile: ./compose/production/postgres/Dockerfile
volumes:
- postgres_data_local:/var/lib/postgresql/data
- postgres_backup_local:/backups
environment:
- POSTGRES_USER=hicalweb
- POSTGRES_HOST_AUTH_METHOD=trust
nginx:
image: nginx:latest
container_name: nginx
ports:
- "9000:9000"
- "9001:9001"
expose:
- "9001"
- "9000"
volumes:
- ./config/nginx:/etc/nginx
- ./HiCALWeb:/app
- ./data:/data
depends_on:
- django
- cal