-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathdocker-compose.yml
87 lines (81 loc) · 2.53 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: "3"
networks:
xs2a-net:
volumes:
consent-management-data:
services:
# xs2a standalone starter
xs2a-standalone-starter:
image: adorsys/xs2a-standalone-starter
build:
context: xs2a-standalone-starter
dockerfile: Dockerfile
restart: on-failure
environment:
- JAVA_TOOL_OPTIONS="-Xmx256M"
- SPRING_PROFILES_ACTIVE=mock-qwac
- XS2A_CMS_ASPSP_PROFILE_BASEURL=${XS2A_CMS_ASPSP_PROFILE_BASEURL:-http://aspsp-profile:8080/api/v1}
- XS2A_CMS_CONSENT_SERVICE_BASEURL=${XS2A_CMS_CONSENT_SERVICE_BASEURL:-http://consent-management:8080/api/v1}
ports:
- "8080:8080"
networks:
- xs2a-net
depends_on:
- aspsp-profile
- consent-management
# ASPSP-PROFILE
aspsp-profile:
image: adorsys/xs2a-aspsp-profile
build:
context: aspsp-profile/aspsp-profile-server
dockerfile: Dockerfile
restart: on-failure
environment:
- JAVA_TOOL_OPTIONS="-Xmx256M"
- SPRING_PROFILES_ACTIVE=debug_mode
ports:
- "48080:8080"
networks:
- xs2a-net
# CONSENT-MANAGEMENT-SYSTEM
consent-management:
image: adorsys/xs2a-consent-management
build:
context: consent-management/cms-standalone-service
dockerfile: Dockerfile
restart: on-failure
ports:
- "38080:8080"
networks:
- xs2a-net
environment:
- JAVA_TOOL_OPTIONS="-Xmx512M"
- SPRING_DATASOURCE_URL=jdbc:postgresql://consent-management-postgres/consent
- SPRING_DATASOURCE_USERNAME=cms
- SPRING_DATASOURCE_PASSWORD=cms
- XS2A_CMS_ASPSP_PROFILE_BASEURL=${XS2A_CMS_ASPSP_PROFILE_BASEURL:-http://aspsp-profile:8080/api/v1}
- SERVER_KEY=my_secret_for_cms
- SPRING_JPA_PROPERTIES_HIBERNATE_DEFAULT_SCHEMA=consent
- SPRING_LIQUIBASE_ENABLED=true
- SPRING_LIQUIBASE_URL=jdbc:postgresql://consent-management-postgres/consent?currentSchema=consent
- SPRING_LIQUIBASE_USER=cms
- SPRING_LIQUIBASE_PASSWORD=cms
depends_on:
- consent-management-postgres
consent-management-postgres:
image: centos/postgresql-95-centos7
volumes:
- consent-management-data:/var/lib/pgsql/data
- ./consent-management/cms-db-schema/util/pg-create-schema.sh:/usr/share/container-scripts/postgresql/start/zzz-create-schema.sh
restart: on-failure
ports:
- "5432:5432"
networks:
- xs2a-net
environment:
- POSTGRESQL_ADMIN_PASSWORD=postgres
- POSTGRESQL_DATABASE=consent
- POSTGRESQL_USER=cms
- POSTGRESQL_PASSWORD=cms
expose:
- 5432