docker-compose.zeroconf.yml 1.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# This docker-compose is for development environment
version: '2'
services:
  beirand1:
    image: dkr.rsnc.io/poc/beiran/daemon:dev
    build: .
    privileged: true
    volumes:
     # - /var/run/docker.sock:/var/run/docker.sock
     # - /var/lib/docker:/var/lib/docker
     - ./beiran:/opt/beiran/beiran:ro
     - ./beiran_cli:/opt/beiran/beiran_cli:ro
    # network_mode: host
    environment:
15
      - BEIRAN_DISCOVERY_METHOD=zeroconf
16
      - BEIRAN_LISTEN_ADDRESS=0.0.0.0
17 18
      - BEIRAN_LISTEN_PORT=8892
      - BEIRAN_LOG_LEVEL=INFO
19
      # - BEIRAN_HOSTNAME=b1
20 21
      - DOCKER_HOST=http://172.17.0.1:2375
    ports:
22
      - 8892:8892
23 24 25 26 27 28 29 30 31 32 33 34 35 36
    networks:
      - test

  beirand2:
    image: dkr.rsnc.io/poc/beiran/daemon:dev
    build: .
    privileged: true
    volumes:
     # - /var/run/docker.sock:/var/run/docker.sock
     # - /var/lib/docker:/var/lib/docker
     - ./beiran:/opt/beiran/beiran:ro
     - ./beiran_cli:/opt/beiran/beiran_cli:ro
    # network_mode: host
    environment:
37
      - BEIRAN_DISCOVERY_METHOD=zeroconf
38
      - BEIRAN_LISTEN_ADDRESS=0.0.0.0
39 40
      - BEIRAN_LISTEN_PORT=8891
      - BEIRAN_LOG_LEVEL=INFO
41
      # - BEIRAN_HOSTNAME=b2
42 43 44 45 46 47 48 49
      - DOCKER_HOST=http://172.17.0.1:2375
    ports:
      - 8891:8891
    networks:
      - test

networks:
  test: