-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose-test.yml
136 lines (127 loc) · 3.37 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
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.f0C5toG0HFJSWQdYVyxOH574
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
schema-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:
schema-test:
image: ghcr.io/samagrax-rcw/schema:latest
depends_on:
schema-db-test:
condition: service_healthy
identity-test:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:postgres@schema-db-test:5432/postgres
IDENTITY_BASE_URL: "http://identity-test:3332"
ENABLE_AUTH: "false"
healthcheck:
test:
[ "CMD-SHELL", "curl -f http://localhost:3333/health || exit 1" ]
interval: 10s
timeout: 5s
retries: 5
networks:
test:
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-test:
build:
context: .
dockerfile: Dockerfile.test
depends_on:
db-test:
condition: service_healthy
identity-test:
condition: service_healthy
schema-test:
condition: service_healthy
environment:
DATABASE_URL: postgres://postgres:postgres@db-test:5432/postgres
IDENTITY_BASE_URL: "http://identity-test:3332"
SCHEMA_BASE_URL: "http://schema-test:3333"
ENABLE_AUTH: "false"
JWKS_URI: ""
SIGNING_ALGORITHM: "RS256"
networks:
test:
networks:
test: