Skip to content

Commit d192df5

Browse files
author
Andrei Neagu
committed
added service in compose files
1 parent b08d0a7 commit d192df5

File tree

7 files changed

+67
-0
lines changed

7 files changed

+67
-0
lines changed

.env-devel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ INVITATIONS_TRACING=null
164164
LOG_FORMAT_LOCAL_DEV_ENABLED=1
165165
LOG_FILTER_MAPPING='{}'
166166

167+
NOTIFICATIONS_LOGLEVEL=INFO
168+
NOTIFICATIONS_TRACING=null
169+
167170
PAYMENTS_ACCESS_TOKEN_EXPIRE_MINUTES=30
168171
PAYMENTS_ACCESS_TOKEN_SECRET_KEY=2c0411810565e063309be1457009fb39ce023946f6a354e6935107b57676
169172
PAYMENTS_AUTORECHARGE_DEFAULT_MONTHLY_LIMIT=10000

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ SERVICES_NAMES_TO_BUILD := \
4444
efs-guardian \
4545
invitations \
4646
migration \
47+
notifications \
4748
payments \
4849
resource-usage-tracker \
4950
dynamic-scheduler \

services/docker-compose-build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,23 @@ services:
169169
org.opencontainers.image.source: "${VCS_URL}"
170170
org.opencontainers.image.revision: "${VCS_REF}"
171171

172+
notifications:
173+
image: local/notifications:${BUILD_TARGET:?build_target_required}
174+
build:
175+
context: ../
176+
dockerfile: services/notifications/Dockerfile
177+
cache_from:
178+
- local/notifications:${BUILD_TARGET:?build_target_required}
179+
- ${DOCKER_REGISTRY:-itisfoundation}/notifications:master-github-latest
180+
- ${DOCKER_REGISTRY:-itisfoundation}/notifications:staging-github-latest
181+
- ${DOCKER_REGISTRY:-itisfoundation}/notifications:release-github-latest
182+
target: production
183+
labels:
184+
org.label-schema.schema-version: "1.0"
185+
org.opencontainers.image.created: "${BUILD_DATE}"
186+
org.opencontainers.image.source: "${VCS_URL}"
187+
org.opencontainers.image.revision: "${VCS_REF}"
188+
172189
resource-usage-tracker:
173190
image: local/resource-usage-tracker:${BUILD_TARGET:?build_target_required}
174191
build:

services/docker-compose-deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ services:
2525
image: ${DOCKER_REGISTRY:-itisfoundation}/invitations:${DOCKER_IMAGE_TAG:-latest}
2626
migration:
2727
image: ${DOCKER_REGISTRY:-itisfoundation}/migration:${DOCKER_IMAGE_TAG:-latest}
28+
notifications:
29+
image: ${DOCKER_REGISTRY:-itisfoundation}/notifications:${DOCKER_IMAGE_TAG:-latest}
2830
payments:
2931
image: ${DOCKER_REGISTRY:-itisfoundation}/payments:${DOCKER_IMAGE_TAG:-latest}
3032
dynamic-scheduler:

services/docker-compose.devel.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ services:
7272
- ../packages:/devel/packages
7373
- ${HOST_UV_CACHE_DIR}:/home/scu/.cache/uv
7474

75+
notifications:
76+
environment:
77+
<<: *common-environment
78+
NOTIFICATIONS_PROFILING : ${NOTIFICATIONS_PROFILING}
79+
NOTIFICATIONS_LOGLEVEL: DEBUG
80+
volumes:
81+
- ./notifications:/devel/services/notifications
82+
- ../packages:/devel/packages
83+
- ${HOST_UV_CACHE_DIR}:/home/scu/.cache/uv
84+
7585
clusters-keeper:
7686
environment:
7787
<<: *common-environment

services/docker-compose.local.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ services:
8888
- "8008:8000"
8989
- "3017:3000"
9090

91+
notifications:
92+
environment:
93+
<<: *common_environment
94+
INVITATIONS_REMOTE_DEBUGGING_PORT : 3000
95+
ports:
96+
- "8015:8000"
97+
- "3022:3000"
98+
9199
payments:
92100
environment:
93101
<<: *common_environment

services/docker-compose.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,6 +1095,32 @@ services:
10951095
TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT: ${TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT}
10961096
TRACING_OPENTELEMETRY_COLLECTOR_PORT: ${TRACING_OPENTELEMETRY_COLLECTOR_PORT}
10971097

1098+
notifications:
1099+
image: ${DOCKER_REGISTRY:-itisfoundation}/notifications:${DOCKER_IMAGE_TAG:-latest}
1100+
init: true
1101+
hostname: "{{.Node.Hostname}}-{{.Task.Slot}}"
1102+
deploy:
1103+
mode: global
1104+
resources:
1105+
limits:
1106+
cpus: "1.0"
1107+
memory: 1024M
1108+
1109+
environment:
1110+
NOTIFICATIONS_LOGLEVEL: ${NOTIFICATIONS_LOGLEVEL}
1111+
LOG_FORMAT_LOCAL_DEV_ENABLED: ${LOG_FORMAT_LOCAL_DEV_ENABLED}
1112+
LOG_FILTER_MAPPING : ${LOG_FILTER_MAPPING}
1113+
RABBIT_HOST: ${RABBIT_HOST}
1114+
RABBIT_PASSWORD: ${RABBIT_PASSWORD}
1115+
RABBIT_PORT: ${RABBIT_PORT}
1116+
RABBIT_USER: ${RABBIT_USER}
1117+
RABBIT_SECURE: ${RABBIT_SECURE}
1118+
1119+
NOTIFICATIONS_TRACING: ${NOTIFICATIONS_TRACING}
1120+
TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT: ${TRACING_OPENTELEMETRY_COLLECTOR_ENDPOINT}
1121+
TRACING_OPENTELEMETRY_COLLECTOR_PORT: ${TRACING_OPENTELEMETRY_COLLECTOR_PORT}
1122+
1123+
10981124
dask-sidecar:
10991125
image: ${DOCKER_REGISTRY:-itisfoundation}/dask-sidecar:${DOCKER_IMAGE_TAG:-latest}
11001126
init: true

0 commit comments

Comments
 (0)