version: '3'

services:

  portainer:
    ports:
      - '9000:9000'
    container_name: portainer
    networks:
      yewu-network:
        ipv4_address: 192.168.177.110
    restart: always
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock'
      - './portainer_data:/data'
    image: portainer/portainer:latest

networks:
  yewu-network:
    driver: bridge
    ipam:
      config:
        - subnet: 192.168.177.0/24
    name: yewu-network
最后修改:2023 年 11 月 03 日
如果觉得我的文章对你有用,请随意赞赏