Sign inSign up

0creker/architecture-demo-stack:0.2.0

Manifest digest

sha256:b4f9ccf6cb70dcbce6aa65ab04dc11a7749f335022526cc213f114a14dbe31e2

Last pushed

10 days by 0creker

Type

Compose

Manifest digest

sha256:b4f9ccf6cb70dcbce6aa65ab04dc11a7749f335022526cc213f114a14dbe31e2

Compose file content

name: architecture-demo

services:
  monolith:
    image: docker.io/0creker/architecture-demo:0.2.0
    ports:
      - "127.0.0.1:8000:8000"

  modular:
    image: docker.io/0creker/architecture-demo:0.2.0
    command: python -m uvicorn modular.main:app --host 0.0.0.0 --port 8000
    ports:
      - "127.0.0.1:8001:8000"

  orders:
    image: docker.io/0creker/architecture-demo:0.2.0
    command: python -m uvicorn services.orders:app --host 0.0.0.0 --port 8000
    environment:
      CATALOG_URL: http://catalog:8000
      NOTIFICATIONS_URL: http://notifications:8000
    ports:
      - "127.0.0.1:8002:8000"
    depends_on:
      catalog:
        condition: service_healthy
      notifications:
        condition: service_healthy

  catalog:
    image: docker.io/0creker/architecture-demo:0.2.0
    command: python -m uvicorn services.catalog:app --host 0.0.0.0 --port 8000
    healthcheck:
      test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
      interval: 2s
      timeout: 2s
      retries: 15

  notifications:
    image: docker.io/0creker/architecture-demo:0.2.0
    command: python -m uvicorn services.notifications:app --host 0.0.0.0 --port 8000
    healthcheck:
      test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
      interval: 2s
      timeout: 2s
      retries: 15
services:
  catalog:
    image: docker.io/0creker/architecture-demo:0.2.0@sha256:030fece2be2aece3d3305a77bec427bcb9fe73ccd433f087d12655ff9d456779
  modular:
    image: docker.io/0creker/architecture-demo:0.2.0@sha256:030fece2be2aece3d3305a77bec427bcb9fe73ccd433f087d12655ff9d456779
  monolith:
    image: docker.io/0creker/architecture-demo:0.2.0@sha256:030fece2be2aece3d3305a77bec427bcb9fe73ccd433f087d12655ff9d456779
  notifications:
    image: docker.io/0creker/architecture-demo:0.2.0@sha256:030fece2be2aece3d3305a77bec427bcb9fe73ccd433f087d12655ff9d456779
  orders:
    image: docker.io/0creker/architecture-demo:0.2.0@sha256:030fece2be2aece3d3305a77bec427bcb9fe73ccd433f087d12655ff9d456779

Docker commands

docker compose -f oci://0creker/architecture-demo-stack:0.2.0 up

Use the above command to pull and run the Compose file. Learn more⁠.

Images used

Image


Pulls

75

Stars

0

Last Updated

10 days