docker-compose.yml 1.07 KB
Newer Older
1
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Ryan Olson's avatar
Ryan Olson committed
2
3
# SPDX-License-Identifier: Apache-2.0

4
5
6
# Bare minimum infrastructure services for Dynamo.
# For observability (metrics, tracing, dashboards), use docker-observability.yml

7
8
9
10
networks:
  server:
    driver: bridge

Ryan Olson's avatar
Ryan Olson committed
11
12
services:
  nats-server:
13
    image: nats:2.11.4
14
15
16
17
18
19
    command: [ "-c", "/etc/nats/nats-server.conf" ]
    volumes:
      # max_payload set to 15MB to accommodate 10MB decoded embeddings
      # Base64 encoding: 10MB → ~13.3MB, 15MB provides ~1.7MB buffer for metadata
      # max_payload must be configured via configuration file (does not exist as a CLI flag)
      - ./nats-server.conf:/etc/nats/nats-server.conf:ro
Ryan Olson's avatar
Ryan Olson committed
20
21
22
    ports:
      - 4222:4222
      - 6222:6222
23
24
25
      - 8222:8222  # the endpoints include /varz, /healthz, ...
    networks:
      - server
Ryan Olson's avatar
Ryan Olson committed
26
27

  etcd-server:
28
    image: bitnamilegacy/etcd:3.6.1
Ryan Olson's avatar
Ryan Olson committed
29
30
31
    environment:
      - ALLOW_NONE_AUTHENTICATION=yes
    ports:
32
      - 2379:2379  # this port exposes the /metrics endpoint
Ryan Olson's avatar
Ryan Olson committed
33
      - 2380:2380
34
35
    networks:
      - server