Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
docker-compose.yml 4.60 KiB
version: "3"

networks:
  mediator-network:

volumes:
  agency-wallet:
  mediator-controller-data:

# x-env: &defaults
#   MEDIATOR_CONTROLLER_PORT: ${MEDIATOR_CONTROLLER_PORT:-3010}

services:
  caddy:
    image: caddy
    hostname: caddy
    networks:
      - mediator-network
    ports: # Uncomment to access caddy outside of containers
      - 8080:2015
    #   - 2019:2019
    volumes:
      - ./caddy/Caddyfile:/etc/caddy/Caddyfile
    healthcheck:
      # Port 2019 is an internal Caddy admin port.
      test: nc -zv localhost:2019 || exit -1
      interval: 3s
      timeout: 3s
      retries: 5

  # ngrok:
  #   image: ngrok/ngrok
  #   # restart: unless-stopped
  #   hostname: ngrok
  #   depends_on:
  #     - caddy
  #   networks:
  #     - mediator-network
  #   environment:
  #     - NGROK_AUTHTOKEN=${NGROK_AUTHTOKEN}
  #   command: http caddy:2015 --log stdout
  #   # ports: # Uncomment to access ngrok outside of containers
  #   #   - 4040:4040 # admin port
  #   healthcheck:
  #     test: /bin/bash -c "</dev/tcp/ngrok/4040"
  #     interval: 3s
  #     timeout: 3s
  #     retries: 5

  # mediator-controller:
  #   image: node:fermium
  #   # restart: unless-stopped
  #   environment:
  #     - PORT=${MEDIATOR_CONTROLLER_PORT:-3010}
  #     - CONTROLLER_ADMIN_API_KEY=${MEDIATOR_CONTROLLER_ADMIN_API_KEY}
  #     - MEDIATOR_ADMIN_URL=${MEDIATOR_AGENT_ADMIN_URL-http://mediator:3002}
  #     - MEDIATOR_ADMIN_API_KEY=${MEDIATOR_AGENT_ADMIN_API_KEY}
  #     - MEDIATOR_ALIAS=${MEDIATOR_ALIAS}
  #     - LOG_LEVEL=${LOG_LEVEL}
  #   volumes:
  #     - ./acapy/controller:/usr/src/controller
  #     - mediator-controller-data:/usr/src/controller/node_modules
  #   # ports: # Uncomment to access controller outside of containers
  #   #   - ${MEDIATOR_CONTROLLER_PORT:-3010}:${MEDIATOR_CONTROLLER_PORT:-3010}
  #   networks:
  #     - mediator-network
  #   working_dir: /usr/src/controller
  #   entrypoint: /bin/bash
  #   command: ["-c", "npm install; npm run dev"]
  #   healthcheck: