Skip to content

Commit

Permalink
文档 添加 docker compose 运行方式
Browse files Browse the repository at this point in the history
  • Loading branch information
thousmile committed Aug 2, 2023
1 parent eab84af commit d7fd410
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

## 本地运行

Expand Down

0 comments on commit d7fd410

Please sign in to comment.