Skip to content

Commit 1d0ca5e

Browse files
feature: the comanda.boundaries.payments service was introduced with environment settings and dependencies.
1 parent 9274bd9 commit 1d0ca5e

2 files changed

Lines changed: 35 additions & 4 deletions

File tree

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ COMANDA_FEDERATION_CLIENTID=client-identifier
1717
COMANDA_FEDERATION_CLIENTSECRET=client-secret
1818

1919
COMANDA_STRIPE_SECRET=sk_test_BXyhfmo9VUvPWklkMIL00WGLhfOca
20+
COMANDA_ABACATEPAY_URL=https://api.abacatepay.com/v1/
2021

2122
# environment variables for federation gateway
2223

docker-compose.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
env_file:
2424
- .env
2525
ports:
26-
- "5000:8080"
26+
- "5100:8080"
2727
depends_on:
2828
- comanda.infrastructure.mongo
2929
environment:
@@ -53,7 +53,7 @@ services:
5353
env_file:
5454
- .env
5555
ports:
56-
- "5005:8080"
56+
- "5000:8080"
5757
depends_on:
5858
- comanda.infrastructure.federation
5959
- comanda.infrastructure.seq
@@ -80,7 +80,7 @@ services:
8080
env_file:
8181
- .env
8282
ports:
83-
- "5010:8080"
83+
- "5005:8080"
8484
depends_on:
8585
- comanda.infrastructure.federation
8686
- comanda.infrastructure.seq
@@ -110,7 +110,7 @@ services:
110110
env_file:
111111
- .env
112112
ports:
113-
- "5005:8080"
113+
- "5010:8080"
114114
depends_on:
115115
- comanda.infrastructure.federation
116116
- comanda.infrastructure.seq
@@ -129,6 +129,36 @@ services:
129129
Settings__Observability__SeqServerUrl: ${SEQ_SERVERURL}
130130
Settings__Observability__SentryDsn: ${SENTRY_DSN}
131131

132+
comanda.boundaries.payments:
133+
container_name: "comanda.boundaries.payments"
134+
build:
135+
context: ./Boundaries/Comanda.Payments/
136+
dockerfile: Dockerfile
137+
env_file:
138+
- .env
139+
ports:
140+
- "5015:8080"
141+
depends_on:
142+
- comanda.infrastructure.federation
143+
- comanda.infrastructure.seq
144+
environment:
145+
# database settings
146+
Settings__Database__ConnectionString: ${COMANDA_MONGO_CONNECTIONSTRING}
147+
Settings__Database__DatabaseName: ${COMANDA_MONGO_DATABASENAME}
148+
149+
# federation settings
150+
Settings__Federation__BaseUrl: ${COMANDA_FEDERATION_BASEURL}
151+
Settings__Federation__Realm: ${COMANDA_FEDERATION_REALM}
152+
Settings__Federation__ClientId: ${COMANDA_FEDERATION_CLIENTID}
153+
Settings__Federation__ClientSecret: ${COMANDA_FEDERATION_CLIENTSECRET}
154+
155+
# abacatepay settings
156+
Settings__AbacatePay__Url: ${COMANDA_ABACATEPAY_URL}
157+
158+
# observability settings
159+
Settings__Observability__SeqServerUrl: ${SEQ_SERVERURL}
160+
Settings__Observability__SentryDsn: ${SENTRY_DSN}
161+
132162
volumes:
133163
comanda.infrastructure.mongo:
134164
comanda.infrastructure.seq:

0 commit comments

Comments
 (0)