-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
43 lines (43 loc) · 1.37 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
services:
federation:
build:
context: $PWD/lib/federation/federation
args:
venv_python: "${VENV_PYTHON}"
alpine_version: "${ALPINE_VERSION}"
image: ${DOCKER_REGISTRY}/federation:${FEDERATION_VERSION:-latest}
labels:
- "candigv2=federation"
ports:
- "${FEDERATION_PORT}:4232"
logging:
driver: "fluentd"
options:
tag: "{{.Name}}"
secrets:
- source: tyk-secret-key
target: tyk-secret-key
- source: vault-approle-token
target: vault-approle-token
- source: keycloak-client-secret
target: /run/secrets/client_secret
environment:
TEST_KEY: "hoodlebug"
KEYCLOAK_REALM_URL: ${KEYCLOAK_REALM_URL}
KEYCLOAK_PUBLIC_URL: ${KEYCLOAK_PUBLIC_URL}
TYK_LOGIN_TARGET_URL: ${TYK_PRIVATE_URL}
TYK_POLICY_ID: ${TYK_POLICY_ID}
OPA_URL: ${OPA_PRIVATE_URL}
TYK_FEDERATION_API_ID: ${TYK_FEDERATION_API_ID}
CONFIG_DIR: "/app/config"
VAULT_URL: ${VAULT_PRIVATE_URL}
SERVICE_NAME: ${SERVICE_NAME}
FEDERATION_SERVICE_URL: ${FEDERATION_SERVICE_URL}
DEBUG_MODE: ${CANDIG_DEBUG_MODE}
extra_hosts:
- "${CANDIG_DOMAIN}:${LOCAL_IP_ADDR}"
healthcheck:
test: [ "CMD", "curl", "${FEDERATION_SERVICE_URL}/federation/v1/service-info" ]
interval: 30s
timeout: 10s
retries: 3