forked from Spyderisk/system-modeller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.97 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
# This file provides the base orchestration.
# The `docker-compose up` command will read this and automatically overlay the contents of the `docker-compose.override.yml` file.
version: '3.7'
services:
ssm:
build:
context: ./
dockerfile: Dockerfile
args:
# These are passed as "build arguments" to the Dockerfile (referenced as "ARG" in there, available only when building).
# They are set to the value of the environment variable of the same name.
- MAVEN_USER
- MAVEN_PASS
# The "init" config means the container responds to signals and exits cleanly
init: true
environment:
# These env variables override the values in application.properties
# https://docs.spring.io/spring-boot/docs/current/reference/html/spring-boot-features.html#boot-features-external-config
SPRING_DATA_MONGODB_HOST: mongo
KEYCLOAK_CREDENTIALS_SECRET: ${KEYCLOAK_CREDENTIALS_SECRET}
volumes:
# Persistent named volume for the jena-tdb storage
- type: volume
source: jena
target: /code/jena-tdb
depends_on:
- mongo
- keycloak
mongo:
image: mongo:4.2.5-bionic
volumes:
- type: volume
source: mongo-db
target: /data/db
- type: volume
source: mongo-configdb
target: /data/configdb
keycloak:
image: keycloak/keycloak:21.0
# WARNING: THIS CONFIGURATION IS INSECURE AND SHOULD ONLY BE USED IN DEVELOPMENT SYSTEMS
# Override the normal entrypoint of `/opt/keycloak/bin/kc.sh`.
entrypoint: /tmp/import/entrypoint.sh
environment:
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN_USERNAME}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KEYCLOAK_CREDENTIALS_SECRET: ${KEYCLOAK_CREDENTIALS_SECRET}
PROXY_ADDRESS_FORWARDING: '${KEYCLOAK_PROXY_ADDRESS_FORWARDING:-false}'
volumes:
- type: bind
source: ./provisioning/keycloak
target: /tmp/import
volumes:
jena:
mongo-db:
mongo-configdb: