-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-middleware-dev.yaml
103 lines (96 loc) · 3.01 KB
/
docker-compose-middleware-dev.yaml
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
version: "3.7"
services:
policy-api1:
build:
context: .
dockerfile: Dockerfile
image: orchestracities/anubis-management-api:test
networks:
- envoymesh
environment:
- CORS_ALLOWED_ORIGINS=http://localhost
- CORS_ALLOWED_METHODS=*
- CORS_ALLOWED_HEADERS=*
- DEFAULT_POLICIES_CONFIG_FILE=/home/apiuser/config/opa-service/default_policies.ttl
- DEFAULT_WAC_CONFIG_FILE=/home/apiuser/config/opa-service/default_wac_config.yml
- DB_TYPE=postgres
- DB_HOST=postgresserver1
- DB_USER=admin
- DB_PASSWORD=password
- DB_NAME=anubis
- KEYCLOACK_ENABLED=True
- TENANT_ADMIN_ROLE_ID=9dc79aa8-d42f-4720-8de0-fe79a00a46b7
- KEYCLOACK_ADMIN_ENDPOINT=http://keycloak:8080/admin/realms/default
ports:
- "8085:8000"
volumes:
- ./config/opa-service/default_policies.ttl:/home/apiuser/config/opa-service/default_policies.ttl
- ./config/opa-service/default_wac_config.yml:/home/apiuser/config/opa-service/default_wac_config.yml
depends_on:
- postgresserver1
policy-api2:
build:
context: .
dockerfile: Dockerfile
image: orchestracities/anubis-management-api:test
networks:
- envoymesh
environment:
- CORS_ALLOWED_ORIGINS=http://localhost
- CORS_ALLOWED_METHODS=*
- CORS_ALLOWED_HEADERS=*
- DEFAULT_POLICIES_CONFIG_FILE=/home/apiuser/config/opa-service/default_policies.ttl
- DEFAULT_WAC_CONFIG_FILE=/home/apiuser/config/opa-service/default_wac_config.yml
- DB_TYPE=postgres
- DB_HOST=postgresserver2
- DB_USER=admin
- DB_PASSWORD=password
- DB_NAME=anubis
- KEYCLOACK_ENABLED=True
- TENANT_ADMIN_ROLE_ID=9dc79aa8-d42f-4720-8de0-fe79a00a46b7
- KEYCLOACK_ADMIN_ENDPOINT=http://keycloak:8080/admin/realms/default
ports:
- "8086:8000"
volumes:
- ./config/opa-service/default_policies.ttl:/home/apiuser/config/opa-service/default_policies.ttl
- ./config/opa-service/default_wac_config.yml:/home/apiuser/config/opa-service/default_wac_config.yml
depends_on:
- postgresserver2
postgresserver1:
image: postgres:14
ports:
- "5432:5432"
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=anubis
networks:
- envoymesh
postgresserver2:
image: postgres:14
ports:
- "5433:5432"
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=anubis
networks:
- envoymesh
keycloak:
image: quay.io/keycloak/keycloak:${KEYCLOAK_VERSION:-19.0.1}
ports:
- "8080:8080"
volumes:
- ./keycloak/oc-custom.jar:/opt/keycloak/providers/oc-custom.jar
- ./keycloak/realm-export.json:/opt/keycloak/data/import/realm-export.json
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_FEATURES=scripts
command: start-dev --import-realm
networks:
- envoymesh
volumes:
mongodata:
networks:
envoymesh: