From d7fd41033e4d4b9e9060ebb149c252de8806283f Mon Sep 17 00:00:00 2001 From: Wang Chen Chen <932560435@qq.com> Date: Wed, 2 Aug 2023 11:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=20=E6=B7=BB=E5=8A=A0=20docke?= =?UTF-8?q?r=20compose=20=E8=BF=90=E8=A1=8C=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 295357b..8b9e936 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,44 @@ queue: ``` - +```shell docker run -d --name go_emqx_exhook -p 16565:16565 -v /etc/go_emqx_exhook/config.yaml:/apps/config.yaml --restart=always thousmile/go_emqx_exhook:1.2 +``` + +vim docker-compose.yml + +```yaml +version: '3' + +networks: + hello-net1: + ipam: + config: + - subnet: 172.19.0.0/16 + gateway: 172.19.0.1 + +services: + go_emqx_exhook: + image: thousmile/go_emqx_exhook:1.2 + container_name: go_emqx_exhook + ports: + - "16565:16565" + environment: + - TZ="Asia/Shanghai" + volumes: + - /etc/go_emqx_exhook/config.yaml:/apps/config.yaml + - /etc/localtime:/etc/localtime:ro + privileged: true + restart: always + networks: + hello-net1: + ipv4_address: 172.19.0.168 + +``` + +```shell +docker compose up -d go_emqx_exhook +``` ## 本地运行