forked from jgi-kbase/IDMappingService
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (60 loc) · 2.12 KB
/
docker-compose.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
60
61
62
version: "3.1"
# This is just an example that shows the relationships between the id mapper image
# and other services. Many of these things would be overidden in the actual
# deployment docker-compose file - for example, the name of the mongodb instance
# that is started up and polled
services:
id_mapper:
image: kbase/id_mapper:latest
ports:
- "8080:8080"
environment:
- ID_MAPPING_CONFIG=/kb/deployment/conf/deployment.cfg
command:
- "-wait"
- "tcp://ci-mongo:27017"
- "-wait"
- "tcp://mongoinit:8080"
- "-timeout"
- "120s"
- "-template"
- "/kb/deployment/conf/.templates/deployment.cfg.templ:/kb/deployment/conf/deployment.cfg"
- "-template"
- "/kb/deployment/conf/.templates/settings.py.templ:/kb/settings.py"
- "gunicorn"
- "-c"
- "/kb/settings.py"
- "--worker-class"
- "gevent"
- "app:app"
# If you needed to pass in context for template evaluation you would put something like
# these lines that tell dockerize to hit github for an INI style file for the context
# - "-env"
# - "https://raw.githubusercontent.com/kbase/mini_kb/master/deployment/conf/tauth2-minikb.yml"
# If the -env URL needs authentication you would use an -env-header directive that specified
# either the hard coded string for the header, or a path to a file that contains the header
# string ( used for working with docker secrets files)
# - "-env-header"
# - "AUTHORIZATION:authtokenvalue"
# or for a path to a secrets file:
# - "env-header"
# - "/run/secrets/authheader"
# If your server is using self-signed certs, or otherwise problematic for cert validation
# you can add the following flag:
# - "-validateCert=false"
depends_on: ["ci-mongo", "mongoinit"]
mongoinit:
image: kbase/db_initialize:latest
entrypoint:
- "/kb/deployment/bin/dockerize.sh"
- "-wait"
- "tcp://ci-mongo:27017"
- "-timeout"
- "120s"
depends_on: [ "ci-mongo" ]
ci-mongo:
image: mongo:2
command:
- "--smallfiles"
ports:
- "27017:27017"