update
This commit is contained in:
parent
1d7db0f54c
commit
830672a06f
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue