This commit is contained in:
dingz 2023-10-17 19:48:45 +08:00
parent 1d7db0f54c
commit 830672a06f
2 changed files with 26 additions and 0 deletions

20
compose-demo01.yml Normal file
View File

@ -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

6
readme.txt Normal file
View File

@ -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