github.com/looshlee/cilium@v1.6.12/examples/getting-started/docker-compose.yml (about) 1 version: '2' 2 services: 3 cilium: 4 container_name: cilium 5 image: docker.io/cilium/cilium:${CILIUM_TAG} 6 command: cilium-agent ${CILIUM_OPTS} 7 volumes: 8 - /var/run/docker.sock:/var/run/docker.sock 9 - /var/run/cilium:/var/run/cilium 10 - /sys/fs/bpf:/sys/fs/bpf 11 # To access Docker container netns: 12 - /var/run/docker/netns:/var/run/docker/netns:rshared 13 # To create named netns for cilium-health endpoint: 14 - /var/run/netns:/var/run/netns:rshared 15 network_mode: "host" 16 cap_add: 17 - "NET_ADMIN" 18 privileged: true 19 depends_on: 20 - consul 21 22 cilium_docker: 23 container_name: cilium-docker-plugin 24 image: docker.io/cilium/docker-plugin:${CILIUM_TAG} 25 command: cilium-docker 26 volumes: 27 - /var/run/cilium:/var/run/cilium 28 - /run/docker/plugins:/run/docker/plugins 29 network_mode: "host" 30 cap_add: 31 - "NET_ADMIN" 32 privileged: true 33 depends_on: 34 - cilium 35 36 consul: 37 container_name: cilium-kvstore 38 ports: 39 - "8500:8500" 40 environment: 41 - "CONSUL_LOCAL_CONFIG={\"skip_leave_on_interrupt\": true, \"disable_update_check\": true}" 42 image: docker.io/library/consul:0.8.3 43 command: agent -client=0.0.0.0 -server -bootstrap-expect 1