diff --git a/src/docker/distributed/.gitignore b/src/docker/distributed/.gitignore index 1a11330c6e95..9c249f378b96 100644 --- a/src/docker/distributed/.gitignore +++ b/src/docker/distributed/.gitignore @@ -1,3 +1,2 @@ -superexec-certificates superlink-certificates server/state diff --git a/src/docker/distributed/certs.yml b/src/docker/distributed/certs.yml index 48e157582e40..0c8a30096d7a 100644 --- a/src/docker/distributed/certs.yml +++ b/src/docker/distributed/certs.yml @@ -3,4 +3,3 @@ services: build: args: SUPERLINK_IP: ${SUPERLINK_IP:-127.0.0.1} - SUPEREXEC_IP: ${SUPEREXEC_IP:-127.0.0.1} diff --git a/src/docker/distributed/client/compose.yml b/src/docker/distributed/client/compose.yml index 6bc6e6739ae4..07203f38c897 100644 --- a/src/docker/distributed/client/compose.yml +++ b/src/docker/distributed/client/compose.yml @@ -1,6 +1,6 @@ services: supernode-1: - image: flwr/supernode:${FLWR_VERSION:-1.12.0} + image: flwr/supernode:${FLWR_VERSION:-nightly} command: - --superlink - ${SUPERLINK_IP:-127.0.0.1}:9092 @@ -17,7 +17,7 @@ services: target: /app/certificates/ca.crt supernode-2: - image: flwr/supernode:${FLWR_VERSION:-1.12.0} + image: flwr/supernode:${FLWR_VERSION:-nightly} command: - --superlink - ${SUPERLINK_IP:-127.0.0.1}:9092 @@ -36,7 +36,7 @@ services: # uncomment to add another SuperNode # # supernode-3: - # image: flwr/supernode:${FLWR_VERSION:-1.12.0} + # image: flwr/supernode:${FLWR_VERSION:-nightly} # command: # - --superlink # - ${SUPERLINK_IP:-127.0.0.1}:9092 @@ -56,7 +56,7 @@ services: build: context: ${PROJECT_DIR:-.} dockerfile_inline: | - FROM flwr/clientapp:${FLWR_VERSION:-1.12.0} + FROM flwr/clientapp:${FLWR_VERSION:-nightly} WORKDIR /app COPY --chown=app:app pyproject.toml . @@ -79,7 +79,7 @@ services: build: context: ${PROJECT_DIR:-.} dockerfile_inline: | - FROM flwr/clientapp:${FLWR_VERSION:-1.12.0} + FROM flwr/clientapp:${FLWR_VERSION:-nightly} WORKDIR /app COPY --chown=app:app pyproject.toml . @@ -104,7 +104,7 @@ services: # build: # context: ${PROJECT_DIR:-.} # dockerfile_inline: | - # FROM flwr/clientapp:${FLWR_VERSION:-1.12.0} + # FROM flwr/clientapp:${FLWR_VERSION:-nightly} # WORKDIR /app # COPY --chown=app:app pyproject.toml . diff --git a/src/docker/distributed/server/compose.yml b/src/docker/distributed/server/compose.yml index f53b63593eb8..0cacc7e3d3b8 100644 --- a/src/docker/distributed/server/compose.yml +++ b/src/docker/distributed/server/compose.yml @@ -1,7 +1,11 @@ services: superlink: - image: flwr/superlink:${FLWR_VERSION:-1.12.0} + image: flwr/superlink:${FLWR_VERSION:-nightly} command: + - --executor + - flwr.superexec.deployment:executor + - --isolation + - process - --ssl-ca-certfile=certificates/ca.crt - --ssl-certfile=certificates/server.pem - --ssl-keyfile=certificates/server.key @@ -17,38 +21,28 @@ services: target: /app/certificates/server.key ports: - 9092:9092 + - 9093:9093 - superexec: + serverapp: build: context: ${PROJECT_DIR:-.} dockerfile_inline: | - FROM flwr/superexec:${FLWR_VERSION:-1.12.0} + FROM flwr/serverapp:${FLWR_VERSION:-nightly} WORKDIR /app COPY --chown=app:app pyproject.toml . RUN sed -i 's/.*flwr\[simulation\].*//' pyproject.toml \ && python -m pip install -U --no-cache-dir . - ENTRYPOINT ["flower-superexec"] + ENTRYPOINT ["flwr-serverapp"] command: - - --executor - - flwr.superexec.deployment:executor - - --executor-config - - superlink="superlink:9091" root-certificates="certificates/superlink-ca.crt" - - --ssl-ca-certfile=certificates/ca.crt - - --ssl-certfile=certificates/server.pem - - --ssl-keyfile=certificates/server.key + - --superlink + - superlink:9091 + - --root-certificates + - certificates/ca.crt secrets: - source: superlink-ca-certfile - target: /app/certificates/superlink-ca.crt - - source: superexec-ca-certfile target: /app/certificates/ca.crt - - source: superexec-certfile - target: /app/certificates/server.pem - - source: superexec-keyfile - target: /app/certificates/server.key - ports: - - 9093:9093 depends_on: - superlink @@ -59,9 +53,3 @@ secrets: file: ../superlink-certificates/server.pem superlink-keyfile: file: ../superlink-certificates/server.key - superexec-ca-certfile: - file: ../superexec-certificates/ca.crt - superexec-certfile: - file: ../superexec-certificates/server.pem - superexec-keyfile: - file: ../superexec-certificates/server.key