github.com/fafucoder/cilium@v1.6.11/examples/mesos/allfiles/docker-compose.yml (about)

     1  version: '2'
     2  services:
     3    cilium:
     4      container_name: cilium
     5      image: docker.io/cilium/cilium:stable
     6      command: cilium-agent --debug --kvstore consul --kvstore-opt consul.address=127.0.0.1:8500
     7      volumes:
     8        - /var/run/docker.sock:/var/run/docker.sock
     9        - /var/run/cilium:/var/run/cilium
    10        - /run/docker/plugins:/run/docker/plugins
    11        - /sys/fs/bpf:/sys/fs/bpf
    12        - /etc/cni/net.d:/host/etc/cni/net.d
    13        - /opt/cni/bin:/host/opt/cni/bin
    14        - /var/run/docker.sock:/var/run/docker.sock:ro
    15      network_mode: "host"
    16      cap_add:
    17        - "NET_ADMIN"
    18      privileged: true
    19      depends_on:
    20        - consul
    21  
    22    consul:
    23      container_name: cilium-kvstore
    24      ports:
    25        - "8500:8500"
    26      environment:
    27        - "CONSUL_LOCAL_CONFIG={\"skip_leave_on_interrupt\": true}"
    28      image: docker.io/consul:0.8.3
    29      command: agent -client=0.0.0.0 -server -bootstrap-expect 1