github.com/gogf/gf/v2@v2.7.4/.github/workflows/consul/docker-compose.yml (about)

     1  version: '3.7'
     2  
     3  services:
     4  
     5    consul-server:
     6      image: loads/consul:1.15
     7      container_name: consul-server
     8      restart: always
     9      volumes:
    10       - ./server.json:/consul/config/server.json:ro
    11      networks:
    12        - consul
    13      ports:
    14        - "8500:8500"
    15        - "8600:8600/tcp"
    16        - "8600:8600/udp"
    17      command: "agent"
    18  
    19    consul-client:
    20      image: loads/consul:1.15
    21      container_name: consul-client
    22      restart: always
    23      volumes:
    24       - ./client.json:/consul/config/client.json:ro
    25      networks:
    26        - consul
    27      command: "agent"
    28  
    29  networks:
    30    consul:
    31      driver: bridge