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 - 2015:2015 # - 2019:2019 volumes: - ./caddy/Caddyfile:/etc/caddy/Caddyfile:z healthcheck: # Port 2019 is an internal Caddy admin port. test: nc -zv localhost:2019 || exit -1 interval: 3s timeout: 3s start_period: 10s retries: 5 ngrok: image: ngrok/ngrok restart: unless-stopped hostname: ngrok depends_on: caddy: condition: service_healthy 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 "