From 32d08d4cc78454a13e19f6a3a8325004dad362f3 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi <16166434+thalesmg@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:40:50 -0300 Subject: [PATCH] docs: add example docker compose with emqx and tinyproxy --- example-docker-compose-with-http-proxy.yaml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 example-docker-compose-with-http-proxy.yaml diff --git a/example-docker-compose-with-http-proxy.yaml b/example-docker-compose-with-http-proxy.yaml new file mode 100644 index 0000000..af05d32 --- /dev/null +++ b/example-docker-compose-with-http-proxy.yaml @@ -0,0 +1,37 @@ +services: + emqx: + image: emqx/emqx-enterprise:5.8.0 + networks: + - tmp + healthcheck: + test: curl --fail mqtt://127.0.0.1:1883/t -d a || exit 1 + interval: 10s + timeout: 10s + retries: 3 + start_period: 15s + snowflake: + depends_on: + emqx: + condition: service_healthy + tinyproxy: + condition: service_started + image: ghcr.io/emqx/emqx-snowflake-proxy:2.0.3 + networks: + - tmp + volumes: + - ./config.edn:/opt/proxy/config.edn:ro + tinyproxy: + image: monokal/tinyproxy + networks: + - tmp + environment: + BASIC_AUTH_USER: user + BASIC_AUTH_PASSWORD: pass + command: ["ANY"] +networks: + tmp: + driver: bridge + name: tmp + enable_ipv6: true + ipam: + driver: default