version: '2' services: sockethub: build: ./sockethub restart: always hostname: sockethub container_name: sockethub entrypoint: - bin/sockethub - --examples volumes: - ./sockethub/config.json:/sockethub/config.json:ro ports: - 10550:10550/tcp networks: mynet: ipv4_address: 172.130.0.101 redis: image: redis:alpine hostname: redis-sockethub container_name: redis-sockethub restart: always volumes: - ./redis:/data expose: - 6379 networks: mynet: ipv4_address: 172.130.0.102 networks: mynet: driver: bridge ipam: config: - subnet: 172.130.0.0/24