Skip to content

Commit

Permalink
Fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ryardley committed Dec 11, 2024
1 parent 680d9b1 commit 963e872
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
cn1:
image: ghcr.io/gnosisguild/ciphernode:${TAG}
volumes:
- ./.deploy/cn1.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- ./cn1.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- cn1-data:/home/ciphernode/.local/share/enclave
secrets:
- source: secrets_cn1
Expand All @@ -29,7 +29,7 @@ services:
depends_on:
- cn1
volumes:
- ./.deploy/cn2.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- ./cn2.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- cn2-data:/home/ciphernode/.local/share/enclave
secrets:
- source: secrets_cn2
Expand All @@ -56,7 +56,7 @@ services:
depends_on:
- cn1
volumes:
- ./.deploy/cn3.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- ./cn3.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- cn3-data:/home/ciphernode/.local/share/enclave
secrets:
- source: secrets_cn3
Expand All @@ -83,7 +83,7 @@ services:
depends_on:
- cn1
volumes:
- ./.deploy/agg.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- ./agg.yaml:/home/ciphernode/.config/enclave/config.yaml:ro
- agg-data:/home/ciphernode/.local/share/enclave
secrets:
- source: secrets_agg
Expand All @@ -107,13 +107,13 @@ services:

secrets:
secrets_cn1:
file: .deploy/cn1.secrets.json
file: cn1.secrets.json
secrets_cn2:
file: .deploy/cn2.secrets.json
file: cn2.secrets.json
secrets_cn3:
file: .deploy/cn3.secrets.json
file: cn3.secrets.json
secrets_agg:
file: .deploy/agg.secrets.json
file: agg.secrets.json

volumes:
cn1-data:
Expand Down
14 changes: 13 additions & 1 deletion .deploy/swarm_deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,19 @@ Remember to modify any highlighted files before use.

# Run docker swarm

First we need to initialize swarm.

```
docker swarm init
```

If you get an error about not being able to choose between IP addresses choose the more private IP address.

```
docker swarm init --advertise-addr 10.49.x.x
```

```
docker stack deploy -c .deploy/docker-compose.yml enclave-stack
TAG=latest docker stack deploy -c .deploy/docker-compose.yml enclave-stack --detach=false
```

0 comments on commit 963e872

Please sign in to comment.