Skip to content

Commit

Permalink
update compose paths
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorvaladi committed May 2, 2024
1 parent 769fd6a commit 1169f15
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion config/combiner-settings.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ version: '3.3'
services:
combiner:
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app
- ${HOST_REPO_DIR:-.}/config/settings-combiner.yaml:/app/config/settings-combiner.yaml
2 changes: 1 addition & 1 deletion config/reducer-settings.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ version: '3.3'
services:
reducer:
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app
- ${HOST_REPO_DIR:-.}/config/settings-reducer.yaml:/app/config/settings-reducer.yaml
8 changes: 4 additions & 4 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ services:
BASE_IMG: ${BASE_IMG:-python:3.10-slim}
working_dir: /app
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app
depends_on:
- minio
- mongo
entrypoint: [ "sh", "-c" ]
command:
- "/venv/bin/pip install --no-cache-dir -e . && /venv/bin/python fedn/fedn/network/api/server.py"
- "/venv/bin/pip install --no-cache-dir -e . && /venv/bin/python fedn/network/api/server.py"
ports:
- 8092:8092

Expand All @@ -94,7 +94,7 @@ services:
GRPC_HEALTH_PROBE_VERSION: v0.4.24
working_dir: /app
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app
entrypoint: [ "sh", "-c" ]
command:
- "/venv/bin/pip install --no-cache-dir -e . && /venv/bin/fedn run combiner --init config/settings-combiner.yaml"
Expand Down Expand Up @@ -124,7 +124,7 @@ services:
BASE_IMG: ${BASE_IMG:-python:3.10-slim}
working_dir: /app
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app
entrypoint: [ "sh", "-c" ]
command:
- "/venv/bin/pip install --no-cache-dir -e . && /venv/bin/fedn run client --init config/settings-client.yaml"
Expand Down
2 changes: 1 addition & 1 deletion examples/mnist-keras/docker-compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ services:
deploy:
replicas: 2
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app
- ${HOST_REPO_DIR:-.}/examples/mnist-keras/data:/var/data
- /var/run/docker.sock:/var/run/docker.sock
4 changes: 2 additions & 2 deletions examples/mnist-pytorch/docker-compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
deploy:
replicas: 1
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app

client2:
extends:
Expand All @@ -32,4 +32,4 @@ services:
deploy:
replicas: 1
volumes:
- ${HOST_REPO_DIR:-.}/fedn:/app
- ${HOST_REPO_DIR:-.}:/app

0 comments on commit 1169f15

Please sign in to comment.