Skip to content

Commit

Permalink
Fixed local IPFS node configuration and updated to v0.22.0;
Browse files Browse the repository at this point in the history
  • Loading branch information
Neurone committed Aug 24, 2023
1 parent b567f3d commit a9f797c
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 62 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ To let the Multi-environment transition happen in a transparent way the `GUARDIA


```
IPFS_NODE_ADDRESS="..." # Default IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_NODE_ADDRESS="..." # Default IPFS_NODE_ADDRESS="http://localhost:5001"
IPFS_PUBLIC_GATEWAY='...' # Default IPFS_PUBLIC_GATEWAY='https://localhost:8080/ipfs/${cid}'
IPFS_PROVIDER="local"
```
Expand Down
2 changes: 1 addition & 1 deletion configs/.env.develop.guardian.system
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ IPFS_TIMEOUT="720"
IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
IPFS_PUBLIC_GATEWAY='https://ipfs.io/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://ipfs-node:5002"
IPFS_NODE_ADDRESS="http://ipfs-node:5001"

#BATCH_NFT_MINT_SIZE=10
# FE/DEMO
Expand Down
2 changes: 1 addition & 1 deletion configs/.env.template.guardian.system
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ IPFS_TIMEOUT="720"
IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
IPFS_PUBLIC_GATEWAY='https://ipfs.io/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://ipfs-node:5002"
IPFS_NODE_ADDRESS="http://ipfs-node:5001"
#BATCH_NFT_MINT_SIZE=10

# FE/DEMO
Expand Down
21 changes: 9 additions & 12 deletions docker-compose-DEV-ONLYSERVERS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@ services:
depends_on:
- mongo

# ipfs-node:
# image: ipfs/kubo:v0.18.1
# ports:
# - "5001:5001"
# - "5002:5002"
# - "4001:4001"
# - "4002:4002"
# - "8080:8080"
# - "8081:8081"
# volumes:
# - ./runtime-data/ipfs/staging:/export:rw
# - ./runtime-data/ipfs/data:/data/ipfs:rw
# ipfs-node:
# image: ipfs/kubo:v0.22.0
# ports:
# - "5001:5001"
# - "4001:4001"
# - "8080:8080"
# volumes:
# - ./runtime-data/ipfs/staging:/export:rw
# - ./runtime-data/ipfs/data:/data/ipfs:rw


message-broker:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ services:
- mongo

ipfs-node:
image: ipfs/kubo:v0.17.0
image: ipfs/kubo:v0.22.0
ports:
- "5001:5001"
- "5002:5002"
- "4001:4001"
- "4002:4002"
- "8080:8080"
- "8081:8081"
volumes:
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw

message-broker:
image: nats:2.9.8
Expand Down
15 changes: 6 additions & 9 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,14 @@ services:
ports:
- 27017:27017
ipfs-node:
image: ipfs/kubo:v0.18.1
image: ipfs/kubo:v0.22.0
ports:
- "5001:5001"
- "5002:5002"
- "4001:4001"
- "4002:4002"
- "8080:8080"
- "8081:8081"
- "5001:5001"
- "4001:4001"
- "8080:8080"
volumes:
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw
message-broker:
image: nats:2.9.8
expose:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ services:
- mongo

ipfs-node:
image: ipfs/kubo:v0.18.1
image: ipfs/kubo:v0.22.0
ports:
- "5001:5001"
- "5002:5002"
- "4001:4001"
- "4002:4002"
- "8080:8080"
- "8081:8081"
volumes:
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw

message-broker:
image: nats:2.9.8
Expand Down
5 changes: 1 addition & 4 deletions docker-composeRIL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ services:
- mongo

ipfs-node:
image: ipfs/kubo:v0.18.1
image: ipfs/kubo:v0.22.0
ports:
- "5001:5001"
- "5002:5002"
- "4001:4001"
- "4002:4002"
- "8080:8080"
- "8081:8081"
volumes:
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw
Expand Down
5 changes: 1 addition & 4 deletions docker-compose_SSV.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,11 @@ services:
- mongo

ipfs-node:
image: ipfs/kubo:v0.18.1
image: ipfs/kubo:v0.22.0
ports:
- "5001:5001"
- "5002:5002"
- "4001:4001"
- "4002:4002"
- "8080:8080"
- "8081:8081"
volumes:
- ./runtime-data/ipfs/staging:/export:rw
- ./runtime-data/ipfs/data:/data/ipfs:rw
Expand Down
4 changes: 2 additions & 2 deletions docs/environments/Ecosystem-Environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
#Single quote IPFS_PUBLIC_GATEWAY
IPFS_PUBLIC_GATEWAY='https://ipfs.io/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://ipfs-node:5002"
IPFS_NODE_ADDRESS="http://ipfs-node:5001"
```

## 1) Docker Compose Configuration
Expand Down Expand Up @@ -254,4 +254,4 @@ Follow the steps:
$ docker compose up -d
```

In this configuration using the default OVERRIDING=false in the .env.\<GUARDIAN_ENV\>.guardian.system grant that the environments that are in each ./\<service\>/configs remain unloaded.
In this configuration using the default OVERRIDING=false in the .env.\<GUARDIAN_ENV\>.guardian.system grant that the environments that are in each ./\<service\>/configs remain unloaded.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Furthermore, the services are grouped into external and internal ones. External
* &#x20; mongo:6.0.3
* &#x20; mongo-express:1.0.0-alpha.4
* &#x20; mongo
* &#x20; ipfs/kubo:v0.18.1
* &#x20; ipfs/kubo:v0.22.0
* &#x20; message-broker:2.9.8
* &#x20; vault:1.12.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
#Single quote IPFS_PUBLIC_GATEWAY
IPFS_PUBLIC_GATEWAY='https://ipfs.io/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://ipfs-node:5002"
IPFS_NODE_ADDRESS="http://ipfs-node:5001"
```

### 4) To use the docker-compose configuration and overriding specific service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ To let the Multi-environment transition happen in a transparent way the `GUARDIA


```
IPFS_NODE_ADDRESS="..." # Default IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_NODE_ADDRESS="..." # Default IPFS_NODE_ADDRESS="http://localhost:5001"
IPFS_PUBLIC_GATEWAY='...' # Default IPFS_PUBLIC_GATEWAY='https://localhost:8080/ipfs/${cid}'
IPFS_PROVIDER="local"
```

{% hint style="info" %}
Note:

1. Default IPFS\_NODE\_ADDRESS="[http://localhost:5002](http://localhost:5002/)"
1. Default IPFS\_NODE\_ADDRESS="[http://localhost:5001](http://localhost:5001/)"
2. Default IPFS\_PUBLIC\_GATEWAY="[https://localhost:8080/ipfs/${cid}](https://localhost:8080/ipfs/$%7Bcid%7D)"
{% endhint %}

Expand Down
2 changes: 1 addition & 1 deletion k8s-manifests/1-config/worker-service-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data:
IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
IPFS_PUBLIC_GATEWAY='https://ipfs.io/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_NODE_ADDRESS="http://localhost:5001"
MAX_HEDERA_TIMEOUT="600"
MQ_MAX_PAYLOAD="1048576"
#LOG_LEVEL="2"
Expand Down
9 changes: 0 additions & 9 deletions k8s-manifests/2-service/ipfs-node-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,12 @@ spec:
- name: "5001"
port: 5001
targetPort: 5001
- name: "5002"
port: 5002
targetPort: 5002
- name: "4001"
port: 4001
targetPort: 4001
- name: "4002"
port: 4002
targetPort: 4002
- name: "8080"
port: 8080
targetPort: 8080
- name: "8081"
port: 8081
targetPort: 8081
selector:
io.kompose.service: ipfs-node
status:
Expand Down
3 changes: 0 additions & 3 deletions k8s-manifests/3-controller/ipfs-node-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@ spec:
name: ipfs-node
ports:
- containerPort: 5001
- containerPort: 5002
- containerPort: 4001
- containerPort: 4002
- containerPort: 8080
- containerPort: 8081
resources: {}
restartPolicy: Always
updateStrategy: {}
Expand Down
2 changes: 1 addition & 1 deletion worker-service/configs/.env.worker
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IPFS_TIMEOUT="720"
IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
IPFS_PUBLIC_GATEWAY='https://ipfs.eth.aragon.network/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_NODE_ADDRESS="http://localhost:5001"
MAX_HEDERA_TIMEOUT="600"
MQ_MAX_PAYLOAD="1048576"
#LOG_LEVEL="2"
Expand Down
2 changes: 1 addition & 1 deletion worker-service/configs/.env.worker.develop
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IPFS_TIMEOUT="720"
IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
IPFS_PUBLIC_GATEWAY='https://w3s.link/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_NODE_ADDRESS="http://localhost:5001"
MAX_HEDERA_TIMEOUT="600"
MQ_MAX_PAYLOAD="1048576"
#LOG_LEVEL="2"
Expand Down
2 changes: 1 addition & 1 deletion worker-service/configs/.env.worker.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ IPFS_TIMEOUT="720"
IPFS_PROVIDER="web3storage" # 'web3storage' or 'local'
IPFS_PUBLIC_GATEWAY='https://ipfs.io/ipfs/${cid}'
IPFS_STORAGE_API_KEY="..."
IPFS_NODE_ADDRESS="http://localhost:5002"
IPFS_NODE_ADDRESS="http://localhost:5001"
MAX_HEDERA_TIMEOUT=""
MQ_MAX_PAYLOAD=""
#LOG_LEVEL="2"
Expand Down

0 comments on commit a9f797c

Please sign in to comment.