-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.75 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
version: '3'
services:
postgres:
image: 'postgres:latest'
ports:
- "5432:5432"
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=paymentinitiation
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/postgresql:/docker-entrypoint-initdb.d/
openbanking-paymentinitiation:
build:
context: .
dockerfile: Dockerfile.dev
image: kaktas/openbanking-paymentinitiation
ports:
- "8080:8080"
command: "./payment"
depends_on:
- postgres
environment:
- KID=<CLIENT_SIGNING_KID>
- INTERNAL_SIGN_KEY=certs/<internal_signing.key>
- OB_SIGN_KEY=certs/<client_signing.key>
- CLIENT_CA_CERT_PEM=certs/ob_issuer.cer,certs/danske_sandbox.cer,certs/ozone_sandbox.cer
- CLIENT_CERT_PEM=certs/<client_transport.pem>
- CLIENT_KEY_PEM=certs/<client_transport.key>
- DRIVER_NAME=postgres
- DATASOURCE_URL=postgres://postgres:postgres@postgres:5432/paymentinitiation?sslmode=disable
openbanking-paymentinitiation_callback:
image: kaktas/openbanking-paymentinitiation
ports:
- "8081:8081"
command: "./callback"
depends_on:
- openbanking-paymentinitiation
environment:
- KID=<CLIENT_SIGNING_KID>
- INTERNAL_SIGN_KEY=certs/<internal_signing.key>
- OB_SIGN_KEY=certs/<client_signing.key>
- CLIENT_CA_CERT_PEM=certs/ob_issuer.cer,certs/danske_sandbox.cer,certs/ozone_sandbox.cer
- CLIENT_CERT_PEM=certs/<client_transport.pem>
- CLIENT_KEY_PEM=certs/<client_transport.key>
- DRIVER_NAME=postgres
- DATASOURCE_URL=postgres://postgres:postgres@postgres:5432/paymentinitiation?sslmode=disable
volumes:
postgres-data:
driver: local