version: "2" services: registry: image: registry ports: - "${REGISTRY_PORT}:5000" master: image: $REGISTRY_ADDR:$REGISTRY_PORT/$IMAGE_NAME user: root entrypoint: ["mpi_bootstrap", "role=master", "mpi_master_service_name=master", "mpi_worker_service_name=worker"] ports: - "${SSH_PORT}:22" networks: - net volumes: - ${PWD}:/project worker: image: $REGISTRY_ADDR:$REGISTRY_PORT/$IMAGE_NAME user: root entrypoint: ["mpi_bootstrap", "role=worker", "mpi_master_service_name=master", "mpi_worker_service_name=worker"] networks: - net volumes: - ${PWD}:/project networks: net: