forked from UN-ICC/icc-oidc-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (62 loc) · 1.77 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
version: "3.1"
services:
oidc-django:
build: .
environment:
OIDC_DB_USER: ${POSTGRESQL_USER}
OIDC_DB_PASSWORD: ${POSTGRESQL_PASSWORD}
OIDC_DB_NAME: ${POSTGRESQL_DATABASE}
OIDC_DB_PORT: 5432
ACAPY_ADMIN_PORT: ${AGENT_ADMIN_PORT}
ACAPY_TRANSPORT_PORT: ${AGENT_HTTP_PORT}
DJANGO_SETTINGS_MODULE: ${DJANGO_SETTINGS_MODULE}
SECRET_KEY: ${SECRET_KEY}
SITE_URL: ${SITE_URL}
DEBUG: ${DEBUG}
networks:
- oidc
ports:
- 5000:8080
depends_on:
- oidc-db
oidc-db:
image: registry.access.redhat.com/rhscl/postgresql-10-rhel7:latest
environment:
POSTGRESQL_USER: ${POSTGRESQL_USER}
POSTGRESQL_PASSWORD: ${POSTGRESQL_PASSWORD}
POSTGRESQL_DATABASE: ${POSTGRESQL_DATABASE}
ports:
- ${EXPOSED_DATABASE_SERVICE_PORT}:5432
volumes:
- db-volume:/var/lib/pgsql/data
networks:
- oidc
aca-py:
image: bcgovimages/aries-cloudagent:py36-1.15-0_0.5.4
ports:
- ${AGENT_ADMIN_PORT}:${AGENT_ADMIN_PORT}
- ${AGENT_HTTP_PORT}:${AGENT_HTTP_PORT}
networks:
- oidc
entrypoint: /bin/bash
command: [
"-c",
"aca-py start \
--inbound-transport http '0.0.0.0' ${AGENT_HTTP_PORT} \
--outbound-transport http \
--endpoint ${AGENT_ENDPOINT} \
--genesis-url '${GENESIS_URL}' \
--auto-verify-presentation \
--wallet-type 'indy' \
--wallet-name 'oidc_agent_wallet' \
--wallet-key '${WALLET_ENCRYPTION_KEY}' \
--seed '${AGENT_SEED}' \
--admin '0.0.0.0' ${AGENT_ADMIN_PORT} \
--${ACAPY_ADMIN_MODE} \
--label ${AGENT_NAME} \
--webhook-url ${IDENTITY_SERVER_WEB_HOOK_URL}",
]
volumes:
db-volume:
networks:
oidc: