-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.15 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
volumes:
auth-data:
external: true
services:
runner:
build:
context: .
args:
venv_python: "3.12"
alpine_version: "3.18"
volumes:
- auth-data:/app
environment:
OPA_URL: http://opa:8181
VAULT_URL: http://vault:8200
SERVICE_NAME: opa
CANDIG_USER_KEY: email
healthcheck:
test: ["CMD", "curl", "--fail", "http://opa:8181/v1/data/service/service-info"]
interval: 30s
timeout: 20s
retries: 3
entrypoint:
- "bash"
- "/app/entrypoint.sh"
opa:
image: openpolicyagent/opa:latest-static
ports:
- "8181:8181"
volumes:
- auth-data:/app
command:
- "run"
- "--set=decision_logs.console=true"
- "--log-level=info"
- "--authentication=token"
- "--authorization=basic"
- "-s"
- "app/permissions_engine/"
vault:
image: hashicorp/vault:1.13
ports:
- 8200:8200
volumes:
- auth-data:/vault
environment:
- VAULT_ADDR=http://127.0.0.1:8200
- VAULT_DISABLE_MLOCK=true
cap_add:
- IPC_LOCK
command: vault server -config=/vault/config/vault-config.json