forked from kbase/auth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (44 loc) · 1.68 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
version: "3.1"
# This is just an example that shows the relationships between the auth2 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:
auth2:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
mongo_host: "mongo:27017"
test_mode_enabled: "true"
identity_providers: ""
command:
- "-wait"
- "tcp://mongo:27017"
- "-timeout"
- "120s"
- "-template"
- "/kb/deployment/conf/.templates/deployment.cfg.templ:/kb/deployment/conf/deployment.cfg"
# 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"
- "/kb/deployment/bin/start_auth2.sh"
depends_on: ["mongo"]
mongo:
image: mongo:7
ports:
- "27017:27017"