This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
168 lines (166 loc) · 4.83 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
---
version: '2'
volumes:
database: {}
prometheus_data: {}
grafana_data: {}
services:
start_dependencies:
image: dadarek/wait-for-dependencies
depends_on:
- db
command: db:5432
start_keycloak:
image: dadarek/wait-for-dependencies
depends_on:
- keycloak
command: keycloak:8080
faktory:
build:
context: ./faktory
ports:
- "7420:7420"
environment:
- FAKTORY_PASSWORD=fassword
volumes:
- ./faktory-data:/var/lib/faktory
command: /faktory -b 0.0.0.0:7419 -w 0.0.0.0:7420 -e production
keycloak:
depends_on:
- start_dependencies
build:
context: .
dockerfile: ./keycloak/Dockerfile
# to use the image line, you must first build & load the image
# bazel run //keycloak:keycloak
# image: bazel/keycloak:keycloak
# TODO: trouble with neverlink, need to figure out how to neverlink antlr and dom4j
environment:
- DB_DATABASE=mappamundi_dev
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_ADDR=postgres
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- KEYCLOAK_LOGLEVEL=INFO
- PROXY_ADDRESS_FORWARDING=true
- KEYCLOAK_HOSTNAME=dev.havengrc.com
- KEYCLOAK_HTTP_PORT=80
- KEYCLOAK_HTTPS_PORT=443
links:
- db:postgres
volumes:
- ./keycloak/themes/haven:/opt/jboss/keycloak/themes/haven
- ./keycloak/data:/keycloak
command: ["-b", "0.0.0.0", "-Dkeycloak.migration.file=/keycloak/havendev-realm.json", "-Dkeycloak.migration.strategy=IGNORE_EXISTING", "-Dkeycloak.migration.provider=singleFile", "-Dkeycloak.migration.action=import"]
flyway:
build:
context: flyway/
volumes:
- ./flyway/sql:/flyway/sql
environment:
- FLYWAY_URL=jdbc:postgresql:https://db/mappamundi_dev
- FLYWAY_USER=postgres
- FLYWAY_PASSWORD=postgres
- FLYWAY_IGNORE_MISSING_MIGRATIONS=true
- FLYWAY_GROUP=true
- FLYWAY_SCHEMAS=mappa,1
- FLYWAY_PLACEHOLDERS_DATABASEUSER=postgres
command: ["migrate", "-placeholders.databaseUser=postgres"]
links:
- db
db:
image: postgres:9.6.4
ports:
- "5434:5432"
environment:
- POSTGRES_DB=mappamundi_dev
volumes:
- ./postgresql-data:/var/lib/postgresql
gatekeeper:
build:
context: gatekeeper/
ports:
- "80:81"
volumes:
- ./gatekeeper/config:/opt/config
- ./webui/pki:/certs
links:
- webui
# k8s equivalent to extra_hosts is .spec.hostAliases
extra_hosts:
- "dev.havengrc.com:127.0.0.1"
environment:
- TLS_CERT=
- TLS_PRIVATE_KEY=
- CLIENT_SECRET=df2ba720-1d10-4d85-940a-6df77ef69baa
- UPSTREAM_URL=http:https://webui/
- DISCOVERY_URL=http:https://dev.havengrc.com/auth/realms/havendev
- KEYCLOAK_INTERNAL=http:https://keycloak:8080
- KEYCLOAK_SCHEME=http
- BASE_URI=
- REDIRECTION_URL=http:https://dev.havengrc.com/
- GATEKEEPER_SESSION_KEY=c01f3736e640ea874d66c3704ddb7a9a
- GATEKEEPER_LISTEN_PORT=81
- SECURE_COOKIE=false
worker:
environment:
- FAKTORY_URL=tcp:https://:fassword@faktory:7419
- KC_ADMIN=admin
- KC_PW=admin
- KC_HOST=http:https://dev.havengrc.com
- KC_PORT=
build:
dockerfile: ./worker/Dockerfile
context: .
links:
- faktory
- gatekeeper:dev.havengrc.com
volumes:
- ./worker/compilereport:/home/havenuser/compilereport
- ./worker/presentation.Rmd:/home/havenuser/presentation.Rmd
- ./worker/template.pptx:/home/havenuser/template.pptx
- ./worker/input.csv:/home/havenuser/input.csv
- ./worker/output:/home/havenuser/output
- ./worker/docker-compose.yml:/home/havenuser/docker-compose.yml
- ./worker/culture-as-mental-model.png:/home/havenuser/culture-as-mental-model.png
havenapi:
working_dir: /go/src/github.com/kindlyops/havengrc/havenapi
volumes:
- ./havenapi:/go/src/github.com/kindlyops/havengrc/havenapi
- /go/src/github.com/kindlyops/havengrc/havenapi/vendor
- ./keycloak/keycloak-dev-public-key.json:/keycloak-dev-public-key.json
environment:
- HAVEN_JWK_PATH=/keycloak-dev-public-key.json
- HAVEN_JWT_ISS=http:https://dev.havengrc.com/auth/realms/havendev
- KC_ADMIN=admin
- KC_PW=admin
- KC_HOST=http:https://keycloak
- KC_PORT=8080
- FAKTORY_URL=tcp:https://:fassword@faktory:7419
build:
context: ./havenapi
dockerfile: Dockerfile-hotreload
links:
- db
- faktory
- keycloak
ports:
- "3000:3000"
webui:
working_dir: /code
volumes:
- ./webui:/code
- /code/node_modules
- /code/elm-stuff
build:
context: .
dockerfile: ./webui/Dockerfile-hotreload
depends_on:
- havenapi
- keycloak
ports:
- "2015:80"
command: [/code/installrun.sh]
environment:
- ELM_APP_KEYCLOAK_CLIENT_ID=havendev