github.com/midokura/kubeedge@v1.2.0-mido.0/build/edge/docker-compose.yaml (about)

     1  version: "3"
     2  
     3  networks:
     4    kubeedge-bridge:
     5      driver: bridge
     6  
     7  services:
     8    dind:
     9      image: ${ARCH}/docker:dind
    10      restart: always
    11      privileged: true
    12      networks:
    13        - kubeedge-bridge
    14    emqx:
    15      image: emqx/emqx-edge:v3.1.1-${ARCH}
    16      restart: always
    17      networks:
    18        - kubeedge-bridge
    19  
    20    edgecore:
    21      image: ${EDGECOREIMAGE}
    22      build:
    23         context: ../..
    24         dockerfile: ./build/edge/Dockerfile
    25         args:
    26          - BUILD_FROM=${ARCH}/golang:1.12-alpine3.10
    27          - RUN_FROM=${ARCH}/docker:dind
    28          - QEMU_ARCH=${QEMU_ARCH}
    29      depends_on:
    30        - emqx
    31        - dind
    32      environment:
    33        mqtt.server: tcp://emqx:1883
    34        edgehub.websocket.url: wss://${CLOUDHUB}/e632aba927ea4ac2b575ec1603d56f10/${EDGENAME}/events
    35        edged.hostname-override: ${EDGENAME}
    36        edgehub.controller.node-id: ${EDGENAME}
    37        edgehub.websocket.certfile: ${CERTFILE}
    38        edgehub.websocket.keyfile: ${KEYFILE}
    39        edged.docker-address: tcp://dind:2375
    40        DOCKER_HOST: tcp://dind:2375
    41      volumes:
    42        - ${CERTPATH}:/etc/kubeedge/certs:ro
    43        - /var/lib/edged:/var/lib/edged
    44        - /var/lib/kubeedge:/var/lib/kubeedge
    45      privileged: true
    46      deploy:
    47        resources:
    48          limits:
    49            cpus: '1.00'
    50            memory: 1g
    51      networks:
    52        - kubeedge-bridge