-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
114 lines (114 loc) · 3.59 KB
/
compose.yaml
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
services:
web:
image: web:latest
hostname: web
ports:
- 3000:3000
- 9110:9110
expose:
- 8081
depends_on:
- account.1
- account.2
environment:
- ClusterStartupMethod=Discovery
- ClusterDiscoveryStartup__EndpointNames=account.1,account.2
- ClusterDiscoveryStartup__Port=8558
- PetabridgeCmdRemoting__Port=9110
- DOTNET_URLS=http://+:3000
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__Postgres=postgres://postgres:password@postgres/akkabank
- ConnectionStrings__PostgresAdoFormat=Server=postgres;Database=akkabank;Uid=postgres;Pwd=password
- AkkaRemoting__Port=8081
account.1:
image: account:latest
hostname: account.1
ports:
- 9111:9111
expose:
- 8082
depends_on:
postgres:
condition: service_healthy
environment:
- ClusterStartupMethod=Discovery
- ClusterDiscoveryStartup__EndpointNames=account.1,account.2
- ClusterDiscoveryStartup__Port=8558
- PetabridgeCmdRemoting__Port=9111
- ASPNETCORE_ENVIRONMENT=Development
- MockDomesticTransferProcessor__Port=5007
- ConnectionStrings__Postgres=postgres://postgres:password@postgres/akkabank
- ConnectionStrings__PostgresAdoFormat=Server=postgres;Database=akkabank;Uid=postgres;Pwd=password
- EmailServiceUri=https://api.useplunk.com/v1/
- AkkaRemoting__Port=8082
account.2:
image: account:latest
hostname: account.2
ports:
- 9112:9112
expose:
- 8082
depends_on:
postgres:
condition: service_healthy
environment:
- ClusterStartupMethod=Discovery
- ClusterDiscoveryStartup__EndpointNames=account.1,account.2
- ClusterDiscoveryStartup__Port=8558
- PetabridgeCmdRemoting__Port=9112
- ASPNETCORE_ENVIRONMENT=Development
- MockDomesticTransferProcessor__Port=5007
- ConnectionStrings__Postgres=postgres://postgres:password@postgres/akkabank
- ConnectionStrings__PostgresAdoFormat=Server=postgres;Database=akkabank;Uid=postgres;Pwd=password
- EmailServiceUri=https://api.useplunk.com/v1/
- AkkaRemoting__Port=8082
scheduler:
image: scheduler:latest
hostname: scheduler
ports:
- 9113:9113
expose:
- 8083
depends_on:
- account.1
- account.2
environment:
- ClusterStartupMethod=Discovery
- ClusterDiscoveryStartup__EndpointNames=account.1,account.2
- ClusterDiscoveryStartup__Port=8558
- PetabridgeCmdRemoting__Port=9113
- ASPNETCORE_ENVIRONMENT=Development
- ConnectionStrings__Postgres=postgres://postgres:password@postgres/akkabank
- ConnectionStrings__PostgresAdoFormat=Server=postgres;Database=akkabank;Uid=postgres;Pwd=password
- AkkaRemoting__Port=8083
- Quartz__SchedulerName=Quartz Bank Scheduler
- Quartz__TablePrefix=qrtz_
mock-domestic-transfer-processor:
image: mock-domestic-transfer-processor:latest
expose:
- 5007
environment:
- TCP_BIND_PORT=5007
postgres:
image: postgres:16.0
restart: always
environment:
- POSTGRES_DB=akkabank
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- 5432:5432
volumes:
# Scripts in /docker-entrypoint-initdb.d are run at startup.
# Copy SQL seed scripts from host to container.
- ./Database/Migrations:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
adminer:
image: adminer
restart: always
ports:
- 5008:8080