-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
72 lines (67 loc) · 1.87 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.8"
x-default-variables: &default-variables
LOG_LEVEL: ${LOG_LEVEL-INFO}
LOG_FORMAT: ${LOG_FORMAT-text}
HTTP_PORT: ${HTTP_PORT-8080}
HTTP_HOST: ${HTTP_HOST-0.0.0.0}
HEALTH_PORT: ${HEALTH_PORT-8081}
DB_TLS_SSLMODE: ${DB_TLS_SSLMODE-disable}
DB_TLS_CERT: ${DB_TLS_CERT-}
DB_TLS_KEY: ${DB_TLS_KEY-}
DB_TLS_CA: ${DB_TLS_CA-}
DB_HOST: ${DB_HOST-postgres}
DB_USER: ${DB_USER-postgres}
DB_PASSWORD: ${DB_PASSWORD-postgres}
DB_PORT: ${DB_PORT-}
DB_DATABASE: ${DB_DATABASE-}
DB_POOLSIZE: ${DB_POOLSIZE-}
DB_POOL_TIMEOUT: ${DB_POOL_TIMEOUT-}
AUTH_OIDC_ISSUER_URL: ${AUTH_OIDC_ISSUER_URL-}
AUTH_OIDC_AUDIENCE: ${AUTH_OIDC_AUDIENCE-}
AUTH_OIDC_PERMISSIONS_CLAIMS: ${AUTH_OIDC_PERMISSIONS_CLAIMS-}
AUTH_OIDC_CUSTOM_CLAIMS: ${AUTH_OIDC_CUSTOM_CLAIMS-}
HTTPS_ENABLED: ${HTTPS_ENABLED-}
HTTPS_SERVER_KEY: ${HTTPS_SERVER_KEY-}
HTTPS_SERVER_CERT: ${HTTPS_SERVER_CERT-}
AUTH_TLS_CA: ${AUTH_TLS_CA-}
AUTH_API_KEY_FILE: ${AUTH_API_KEY_FILE-}
services:
postgres:
image: postgres:13.4-alpine
environment:
POSTGRES_PASSWORD: postgres
volumes:
- db-data-api:/var/lib/postgresql/data
ports:
- 5432
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 1s
timeout: 1s
retries: 5
restart: "on-failure"
migration:
image: consensys/quorum-key-manager:latest
environment:
<<: *default-variables
command: migrate up
restart: "on-failure"
depends_on:
- postgres
key-manager:
image: consensys/quorum-key-manager:latest
environment:
<<: *default-variables
MANIFEST_PATH: ${MANIFEST_PATH-/manifests}
ports:
- 8080:8080
- 8081:8081
depends_on:
- migration
command: run
volumes:
- ${HOST_MANIFEST_PATH-./deps/config/manifests}:/manifests:ro
restart: "on-failure"
volumes:
db-data-api:
driver: local