ZhangZhihui's Blog  

 

services:
  stats_server:
    image: stats_server
    container_name: stats_server
    restart: always
    ports:
      - 1234:1234
    networks:
      - stats

networks:
  stats:
    driver: bridge

 

zzh@ZZHPC:/zdata/Github/mastering-go-expertise/stats_web/server$ docker compose up -d
[+] Running 2/2
 ✔ Network server_stats    Created                                                                                                                   0.1s 
 ✔ Container stats_server  Started                                                                                                                   0.4s 

 

posted on 2024-06-25 22:24  ZhangZhihuiAAA  阅读(5)  评论(0编辑  收藏  举报