From 830672a06f21c85320eabd718ad6320edf1bb06e Mon Sep 17 00:00:00 2001 From: dingz Date: Tue, 17 Oct 2023 19:48:45 +0800 Subject: [PATCH] update --- compose-demo01.yml | 20 ++++++++++++++++++++ readme.txt | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 compose-demo01.yml create mode 100644 readme.txt diff --git a/compose-demo01.yml b/compose-demo01.yml new file mode 100644 index 0000000..62452b3 --- /dev/null +++ b/compose-demo01.yml @@ -0,0 +1,20 @@ +version: '3.9' +name: demo01 +#Grafana官方提供模板地址:https://grafana.com/grafana/dashboards +services: + demo01: + image: docker.io/library/demo01:1.0 + container_name: demo01 + restart: unless-stopped + extra_hosts: + - "host.docker.internal:host-gateway" + networks: + - y9-share-net + ports: + - "7055:7055" + #volumes: + # - d:/docker-data/grafana:/var/lib/grafana + +networks: + y9-share-net: + external: true \ No newline at end of file diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..1a3df51 --- /dev/null +++ b/readme.txt @@ -0,0 +1,6 @@ +docker image ls + +docker run --name demo01 --net y9-share-net -ti -p 7055:7055 demo01:1.0 + + +docker compose -f compose-demo01.yml up -d \ No newline at end of file