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