-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-test.yml
97 lines (91 loc) · 2.42 KB
/
docker-compose-test.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
version: '3'
services:
vault-test:
image: vault:1.13.3
restart: always
volumes:
- ./vault.json:/vault/config/vault.json
environment:
- VAULT_ADDR=http://0.0.0.0:8200
- VAULT_API_ADDR=http://0.0.0.0:8200
- VAULT_ADDRESS=http://0.0.0.0:8200
cap_add:
- IPC_LOCK
command: vault server -config=/vault/config/vault.json
healthcheck:
test: ["CMD-SHELL", "wget --spider http://127.0.0.1:8200/v1/sys/health || exit 1"]
interval: 10s
timeout: 5s
retries: 3
networks:
test:
identity-db-test:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
networks:
test:
identity-test:
image: ghcr.io/samagrax-rcw/identity:latest
depends_on:
identity-db-test:
condition: service_healthy
vault-test:
condition: service_healthy
environment:
DATABASE_URL: "postgres://postgres:postgres@identity-db-test:5432/postgres"
VAULT_ADDR: "http://vault-test:8200"
# This will be replaced automatically on initialisation
# make compose-init will call setup_vault.sh
VAULT_TOKEN: hvs.WccBWI4moN6WL3Cg64GYW3zi
VAULT_BASE_URL: "http://vault-test:8200/v1"
VAULT_ROOT_PATH: "http://vault-test:8200/v1/kv"
VAULT_TIMEOUT: 5000
VAULT_PROXY: 'false'
SIGNING_ALGORITHM: "RS256"
JWKS_URI: ""
ENABLE_AUTH: "false"
networks:
test:
healthcheck:
test:
[ "CMD-SHELL", "curl -f http://localhost:3332/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
db-test:
image: postgres:12
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 10s
timeout: 5s
retries: 5
networks:
test:
credential-schema-test:
build:
context: .
dockerfile: Dockerfile.test
depends_on:
db-test:
condition: service_healthy
identity-test:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:postgres@db-test:5432/postgres
IDENTITY_BASE_URL: "http://identity-test:3332"
ENABLE_AUTH: "false"
networks:
test:
networks:
test: