You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
672 B
32 lines
672 B
5 years ago
|
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:
|