GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — universus/docker-compose.yml at main · supermarsx/universus

Expand file tree

/

docker-compose.yml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
594 lines (562 loc) · 22.3 KB
/

docker-compose.yml

Copy path

File metadata and controls

594 lines (562 loc) · 22.3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
x-runtime-environment: &runtime-environment
UNIVERSUS_ENV: production
x-auth-verifier-environment: &auth-verifier-environment
<<: *runtime-environment
AUTH_ALLOW_LEGACY_HS256: "false"
AUTH_JWT_ISSUER: ${AUTH_JWT_ISSUER:-https://auth.universus.internal}
AUTH_JWT_VERIFICATION_KEYS: ${AUTH_JWT_VERIFICATION_KEYS:?AUTH_JWT_VERIFICATION_KEYS must contain kid:base64url-public-key entries}
x-database-dependencies: &database-dependencies
database:
condition: service_healthy
database-migrate:
condition: service_completed_successfully
services:
database:
image: universus-database:local
build:
context: ./database
container_name: universus_database
environment:
POSTGRES_DB: ${POSTGRES_DB:-universus_rpg}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD must be set}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "test \"$$(head -n 1 /var/lib/postgresql/data/postmaster.pid)\" = \"1\" && pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""]
interval: 5s
timeout: 5s
retries: 12
start_period: 5s
database-migrate:
image: universus-database:local
build:
context: ./database
container_name: universus_database_migrate
entrypoint: ["/opt/universus/database/scripts/migrate-db.sh"]
depends_on:
database:
condition: service_healthy
environment:
PGHOST: database
PGPORT: 5432
PGDATABASE: ${POSTGRES_DB:-universus_rpg}
PGUSER: ${POSTGRES_USER:-postgres}
PGPASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD must be set}
MIGRATION_WAIT_SECONDS: ${MIGRATION_WAIT_SECONDS:-60}
MIGRATION_LOCK_TIMEOUT_SECONDS: ${MIGRATION_LOCK_TIMEOUT_SECONDS:-120}
restart: "no"
redis:
build:
context: ./redis
container_name: universus_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
rabbitmq:
build:
context: ./rabbitmq
container_name: universus_rabbitmq
environment:
RABBITMQ_DEFAULT_USER: universus
RABBITMQ_DEFAULT_PASS: universus
ports:
- "5672:5672"
- "15672:15672"
volumes:
- rabbitmq_data:/var/lib/rabbitmq
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
interval: 10s
timeout: 5s
retries: 5
rust-api-gateway:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-api-gateway
container_name: universus_rust_api_gateway
depends_on:
<<: *database-dependencies
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
rust-core-engine:
condition: service_started
rust-privacy-worker:
condition: service_healthy
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-api-gateway
AUTH_TOKEN_ISSUER: "true"
AUTH_TOKEN_AUDIENCES: app-api-gateway,app-web-frontend,app-admin-api,app-bot-api,app-realtime-gateway,app-privacy-worker
AUTH_JWT_SIGNING_KEY_ID: ${AUTH_JWT_SIGNING_KEY_ID:?AUTH_JWT_SIGNING_KEY_ID must select the active signing key}
AUTH_JWT_PRIVATE_KEY_BASE64: ${AUTH_JWT_PRIVATE_KEY_BASE64:?AUTH_JWT_PRIVATE_KEY_BASE64 must be provisioned only to rust-api-gateway}
AUTH_SESSION_DIGEST_KEY: ${AUTH_SESSION_DIGEST_KEY:?AUTH_SESSION_DIGEST_KEY must contain at least 32 random bytes}
PLATFORM_EVENTS_SERVICE_TOKEN: ${API_GATEWAY_REALTIME_PUBLISH_TOKEN:?API_GATEWAY_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
PRIVACY_POLICY_VERSION: ${PRIVACY_POLICY_VERSION:-privacy-v1}
PRIVACY_REQUEST_IP_PEPPER: ${PRIVACY_REQUEST_IP_PEPPER:?PRIVACY_REQUEST_IP_PEPPER must contain at least 32 random bytes}
PRIVACY_EXPORT_ACTIVE_KEY_ID: ${PRIVACY_EXPORT_ACTIVE_KEY_ID:?PRIVACY_EXPORT_ACTIVE_KEY_ID must select a versioned v1 key}
PRIVACY_EXPORT_KEYRING_JSON: ${PRIVACY_EXPORT_KEYRING_JSON:?PRIVACY_EXPORT_KEYRING_JSON must contain the active and retained 32-byte export keys}
PRIVACY_WORKER_INTERNAL_URL: http://rust-privacy-worker:3010
ports:
- "3300:3000"
restart: unless-stopped
rust-web-frontend:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-web-frontend
container_name: universus_rust_web_frontend
depends_on:
rust-api-gateway:
condition: service_started
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-web-frontend
PORT: 3005
API_GATEWAY_URL: http://rust-api-gateway:3000
COOKIE_SECURE: ${COOKIE_SECURE:-true}
UNIVERSUS_ALLOW_INSECURE_LOCAL_HTTP_COOKIE: ${UNIVERSUS_ALLOW_INSECURE_LOCAL_HTTP_COOKIE:-false}
ports:
- "8080:3005"
restart: unless-stopped
rust-admin-api:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-admin-api
container_name: universus_rust_admin_api
depends_on:
<<: *database-dependencies
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-admin-api
RUST_LOG: info
PORT: 3001
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
ports:
- "${ADMIN_PORT:-4302}:3001"
restart: unless-stopped
rust-bot-api:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-bot-api
container_name: universus_rust_bot_api
depends_on:
<<: *database-dependencies
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-bot-api
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
ports:
- "4301:4001"
restart: unless-stopped
rust-bot-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-bot-worker
container_name: universus_rust_bot_worker
depends_on:
rust-bot-api:
condition: service_started
environment:
<<: *runtime-environment
RUST_LOG: info
BOT_API_URL: http://rust-bot-api:4001
BOT_WORKER_SERVICE_TOKEN: ${BOT_WORKER_SERVICE_TOKEN:?BOT_WORKER_SERVICE_TOKEN requires aud=app-bot-api and scope=bot.process}
PLATFORM_EVENTS_SERVICE_TOKEN: ${BOT_WORKER_REALTIME_PUBLISH_TOKEN:?BOT_WORKER_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
BOT_WORKER_INTERVAL_MS: 60000
restart: unless-stopped
rust-sms-api:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-sms-api
container_name: universus_rust_sms_api
depends_on:
<<: *database-dependencies
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-sms-api
RUST_LOG: info
PORT: 3003
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64: ${COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64:?COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64 must decode to at least 32 secret bytes}
COMMUNICATION_SERVICE_TOKEN_FILE: /run/secrets/sms_worker_communication_token
SMS_PROVIDER_URL: ${SMS_PROVIDER_URL:?SMS_PROVIDER_URL must be an HTTPS provider endpoint}
SMS_PROVIDER_BEARER_TOKEN: ${SMS_PROVIDER_BEARER_TOKEN:?SMS_PROVIDER_BEARER_TOKEN must be provisioned from a secret manager}
SMS_PROVIDER_KEY: ${SMS_PROVIDER_KEY:-sms_http}
SMS_PROVIDER_TIMEOUT_SECONDS: ${SMS_PROVIDER_TIMEOUT_SECONDS:-15}
SMS_WORKER_UNIVERSE_IDS: ${SMS_WORKER_UNIVERSE_IDS:?SMS_WORKER_UNIVERSE_IDS must list tenant IDs handled by this dispatcher}
SMS_WORKER_CLAIM_LIMIT: ${SMS_WORKER_CLAIM_LIMIT:-20}
SMS_WORKER_POLL_MILLIS: ${SMS_WORKER_POLL_MILLIS:-1000}
SMS_DISPATCH_WORKER_ID: ${SMS_DISPATCH_WORKER_ID:-sms-api-dispatcher-1}
SMS_DISPATCH_LEASE_SECONDS: ${SMS_DISPATCH_LEASE_SECONDS:-90}
SMS_READINESS_MAX_STALENESS_SECONDS: ${SMS_READINESS_MAX_STALENESS_SECONDS:-30}
secrets:
- source: sms_worker_communication_token
target: sms_worker_communication_token
mode: 0400
ports:
- "${SMS_PORT:-4303}:3003"
healthcheck:
test: ["CMD-SHELL", "/bin/bash -ec 'exec 3<>/dev/tcp/127.0.0.1/3003; printf \"GET /health HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n\" >&3; head -n 1 <&3 | grep -q \" 200 \"'"]
interval: 10s
timeout: 5s
retries: 6
start_period: 15s
stop_signal: SIGINT
stop_grace_period: 130s
restart: unless-stopped
rust-email-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-email-worker
container_name: universus_rust_email_worker
depends_on:
<<: *database-dependencies
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-email-worker
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64: ${COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64:?COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64 must decode to at least 32 secret bytes}
COMMUNICATION_SERVICE_TOKEN_FILE: /run/secrets/email_worker_communication_token
EMAIL_PROVIDER_URL: ${EMAIL_PROVIDER_URL:?EMAIL_PROVIDER_URL must be an HTTPS provider endpoint}
EMAIL_PROVIDER_BEARER_TOKEN: ${EMAIL_PROVIDER_BEARER_TOKEN:?EMAIL_PROVIDER_BEARER_TOKEN must be provisioned from a secret manager}
EMAIL_PROVIDER_KEY: ${EMAIL_PROVIDER_KEY:-email_http}
EMAIL_PROVIDER_TIMEOUT_SECONDS: ${EMAIL_PROVIDER_TIMEOUT_SECONDS:-15}
EMAIL_WORKER_UNIVERSE_ID: ${EMAIL_WORKER_UNIVERSE_ID:?EMAIL_WORKER_UNIVERSE_ID must identify the tenant handled by this worker}
EMAIL_WORKER_ID: ${EMAIL_WORKER_ID:-email-worker-1}
EMAIL_WORKER_CLAIM_LIMIT: ${EMAIL_WORKER_CLAIM_LIMIT:-20}
EMAIL_WORKER_LEASE_SECONDS: ${EMAIL_WORKER_LEASE_SECONDS:-90}
EMAIL_WORKER_POLL_MILLIS: ${EMAIL_WORKER_POLL_MILLIS:-1000}
EMAIL_WORKER_RETRY_BASE_SECONDS: ${EMAIL_WORKER_RETRY_BASE_SECONDS:-15}
EMAIL_WORKER_HEALTH_PORT: ${EMAIL_WORKER_HEALTH_PORT:-3002}
EMAIL_READINESS_MAX_STALENESS_SECONDS: ${EMAIL_READINESS_MAX_STALENESS_SECONDS:-30}
secrets:
- source: email_worker_communication_token
target: email_worker_communication_token
mode: 0400
healthcheck:
test: ["CMD-SHELL", "/bin/bash -ec 'exec 3<>/dev/tcp/127.0.0.1/$${EMAIL_WORKER_HEALTH_PORT}; printf \"GET /health HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n\" >&3; head -n 1 <&3 | grep -q \" 200 \"'"]
interval: 10s
timeout: 5s
retries: 6
start_period: 10s
stop_signal: SIGINT
stop_grace_period: 130s
restart: unless-stopped
rust-analytics-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-analytics-worker
container_name: universus_rust_analytics_worker
depends_on:
<<: *database-dependencies
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
environment:
<<: *runtime-environment
PLATFORM_EVENTS_SERVICE_TOKEN: ${ANALYTICS_WORKER_REALTIME_PUBLISH_TOKEN:?ANALYTICS_WORKER_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
RABBITMQ_URL: amqp://universus:universus@rabbitmq:5672
WORKER_INTERVAL_SECONDS: 10
ANALYTICS_BATCH_SIZE: 100
restart: unless-stopped
rust-realtime-gateway:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-realtime-gateway
container_name: universus_rust_realtime_gateway
depends_on:
<<: *database-dependencies
redis:
condition: service_healthy
rust-core-engine:
condition: service_started
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-realtime-gateway
RUST_LOG: info
PORT: 4004
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REDIS_URL: redis://redis:6379
REALTIME_ALLOWED_ORIGINS: ${REALTIME_ALLOWED_ORIGINS:?REALTIME_ALLOWED_ORIGINS must list trusted browser origins}
ports:
- "4304:4004"
restart: unless-stopped
rust-core-engine:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: backend-core
container_name: universus_rust_core_engine
depends_on:
<<: *database-dependencies
redis:
condition: service_healthy
environment:
<<: *runtime-environment
CORE_BIND_ADDR: 0.0.0.0:50051
ports:
- "50051:50051"
restart: unless-stopped
rust-app-core-engine:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-core-engine
container_name: universus_rust_app_core_engine
depends_on:
<<: *database-dependencies
rust-realtime-gateway:
condition: service_started
environment:
<<: *runtime-environment
PLATFORM_EVENTS_SERVICE_TOKEN: ${CORE_ENGINE_REALTIME_PUBLISH_TOKEN:?CORE_ENGINE_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
ports:
- "4307:3007"
restart: unless-stopped
rust-notifications-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-notifications-worker
container_name: universus_rust_notifications_worker
depends_on:
<<: *database-dependencies
rust-realtime-gateway:
condition: service_started
environment:
<<: *runtime-environment
PLATFORM_EVENTS_SERVICE_TOKEN: ${NOTIFICATIONS_WORKER_REALTIME_PUBLISH_TOKEN:?NOTIFICATIONS_WORKER_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
NOTIFICATION_CLEANUP_INTERVAL_SECS: 900
NOTIFICATION_RETENTION_DAYS: 30
NOTIFICATION_ARCHIVE_GRACE_DAYS: 7
restart: unless-stopped
rust-chat-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-chat-worker
container_name: universus_rust_chat_worker
depends_on:
<<: *database-dependencies
rust-realtime-gateway:
condition: service_started
environment:
<<: *runtime-environment
PLATFORM_EVENTS_SERVICE_TOKEN: ${CHAT_WORKER_REALTIME_PUBLISH_TOKEN:?CHAT_WORKER_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
CHAT_CLEANUP_INTERVAL_SECS: 300
restart: unless-stopped
rust-scheduler-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-scheduler-worker
container_name: universus_rust_scheduler_worker
depends_on:
<<: *database-dependencies
rust-realtime-gateway:
condition: service_started
environment:
<<: *runtime-environment
PLATFORM_EVENTS_SERVICE_TOKEN: ${SCHEDULER_WORKER_REALTIME_PUBLISH_TOKEN:?SCHEDULER_WORKER_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
GAME_LOOP_INTERVAL_SECS: 5
FLEET_SCHEDULER_INTERVAL_SECS: 10
MOON_DESTROY_INTERVAL_SECS: 10
SHARD_HEALTH_INTERVAL_SECS: 60
SCHED_TASK_LEASE_SECS: 30
SCHED_TASK_RETRY_DELAY_SECS: 15
SCHED_TASK_MAX_ATTEMPTS: 3
restart: unless-stopped
rust-privacy-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-privacy-worker
container_name: universus_rust_privacy_worker
init: true
depends_on:
<<: *database-dependencies
rust-realtime-gateway:
condition: service_started
environment:
<<: *auth-verifier-environment
AUTH_EXPECTED_AUDIENCE: app-privacy-worker
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
PLATFORM_EVENTS_SERVICE_TOKEN: ${PRIVACY_WORKER_REALTIME_PUBLISH_TOKEN:?PRIVACY_WORKER_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
PRIVACY_WORKER_ID: ${PRIVACY_WORKER_ID:?PRIVACY_WORKER_ID must be unique per worker replica}
PRIVACY_EXPORT_ACTIVE_KEY_ID: ${PRIVACY_EXPORT_ACTIVE_KEY_ID:?PRIVACY_EXPORT_ACTIVE_KEY_ID must select a versioned v1 key}
PRIVACY_EXPORT_KEYRING_JSON: ${PRIVACY_EXPORT_KEYRING_JSON:?PRIVACY_EXPORT_KEYRING_JSON must contain the active and retained 32-byte export keys}
COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64: ${COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64:?COMMUNICATION_EVIDENCE_HMAC_KEY_BASE64 must match the durable communications evidence key}
PRIVACY_WORKER_CLAIM_LIMIT: ${PRIVACY_WORKER_CLAIM_LIMIT:-8}
PRIVACY_WORKER_CLAIM_TIMEOUT_SECS: ${PRIVACY_WORKER_CLAIM_TIMEOUT_SECS:-5}
PRIVACY_WORKER_LEASE_SECS: ${PRIVACY_WORKER_LEASE_SECS:-60}
PRIVACY_WORKER_JOB_TIMEOUT_SECS: ${PRIVACY_WORKER_JOB_TIMEOUT_SECS:-55}
PRIVACY_WORKER_RETRY_DELAY_SECS: ${PRIVACY_WORKER_RETRY_DELAY_SECS:-30}
PRIVACY_WORKER_POLL_INTERVAL_MS: ${PRIVACY_WORKER_POLL_INTERVAL_MS:-1000}
PRIVACY_WORKER_RUN_ONCE: "false"
PRIVACY_EXPORT_MAX_PLAINTEXT_BYTES: ${PRIVACY_EXPORT_MAX_PLAINTEXT_BYTES:-16777216}
PRIVACY_EXPORT_RETENTION_SECS: ${PRIVACY_EXPORT_RETENTION_SECS:-604800}
PRIVACY_EXPORT_DELIVERY_TOKEN_TTL_SECS: ${PRIVACY_EXPORT_DELIVERY_TOKEN_TTL_SECS:-900}
PRIVACY_RETENTION_INTERVAL_SECS: ${PRIVACY_RETENTION_INTERVAL_SECS:-3600}
PRIVACY_OUTBOX_RETENTION_DAYS: ${PRIVACY_OUTBOX_RETENTION_DAYS:-30}
PRIVACY_WORKER_HEALTH_ADDR: 0.0.0.0:3010
PRIVACY_WORKER_READINESS_STALE_SECS: ${PRIVACY_WORKER_READINESS_STALE_SECS:-30}
healthcheck:
test: ["CMD", "/usr/local/bin/app-privacy-worker", "healthcheck"]
interval: 10s
timeout: 3s
retries: 6
start_period: 10s
stop_grace_period: 80s
restart: unless-stopped
rust-sharding-worker:
build:
context: .
dockerfile: crates/Dockerfile.service
args:
BIN_NAME: app-sharding-worker
container_name: universus_rust_sharding_worker
depends_on:
<<: *database-dependencies
rust-realtime-gateway:
condition: service_started
environment:
<<: *runtime-environment
PLATFORM_EVENTS_SERVICE_TOKEN: ${SHARDING_WORKER_REALTIME_PUBLISH_TOKEN:?SHARDING_WORKER_REALTIME_PUBLISH_TOKEN requires aud=app-realtime-gateway and scope=realtime.publish}
RUST_LOG: info
DATABASE_URL: "${DATABASE_URL_INTERNAL:?DATABASE_URL_INTERNAL must use the database service host}"
REALTIME_GATEWAY_URL: http://rust-realtime-gateway:4004
SERVER_ID: rust-shard-1
SERVER_TYPE: game
SERVER_REGION: global
SERVER_ENDPOINT: http://rust-api-gateway:3000
SHARD_HEARTBEAT_INTERVAL_SECS: 30
SHARD_STALE_CHECK_INTERVAL_SECS: 60
SHARD_STALE_AFTER_SECS: 120
SHARD_MESSAGE_LEASE_SECS: 30
SHARD_MESSAGE_RETRY_DELAY_SECS: 15
SHARD_MESSAGE_MAX_ATTEMPTS: 3
restart: unless-stopped
prometheus:
build:
context: ./observability-service
dockerfile: Dockerfile.prometheus
container_name: universus_prometheus
ports:
- "9090:9090"
volumes:
- ./observability-service/prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- rust-api-gateway
- node-exporter
- blackbox-exporter
grafana:
build:
context: ./observability-service
dockerfile: Dockerfile.grafana
container_name: universus_grafana
ports:
- "3000:3000"
depends_on:
- prometheus
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
alertmanager:
image: prom/alertmanager:latest
container_name: universus_alertmanager
ports:
- "9093:9093"
volumes:
- ./observability-service/alertmanager.yml:/etc/alertmanager/alertmanager.yml
node-exporter:
image: prom/node-exporter:latest
container_name: universus_node_exporter
ports:
- "9100:9100"
blackbox-exporter:
image: prom/blackbox-exporter:latest
container_name: universus_blackbox_exporter
ports:
- "9115:9115"
volumes:
- ./observability-service/blackbox.yml:/etc/blackbox_exporter/config.yml
otel-collector:
image: otel/opentelemetry-collector:latest
container_name: universus_otel_collector
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./observability-service/otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317"
- "4318:4318"
- "8889:8889"
volumes:
postgres_data:
redis_data:
rabbitmq_data:
secrets:
email_worker_communication_token:
file: ${EMAIL_WORKER_COMMUNICATION_TOKEN_FILE:?EMAIL_WORKER_COMMUNICATION_TOKEN_FILE must point to a scoped signed JWT file}
sms_worker_communication_token:
file: ${SMS_WORKER_COMMUNICATION_TOKEN_FILE:?SMS_WORKER_COMMUNICATION_TOKEN_FILE must point to a scoped signed JWT file}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.