Skip to content

Commit

Permalink
use host network for filecoin nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs committed Mar 27, 2024
1 parent baf13fa commit 712f6b3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tf-managed/modules/forest-droplet/bootstrap.bash.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ sudo --user="${NEW_USER}" -- docker network create forest
sudo --user="${NEW_USER}" -- \
docker run \
--detach \
--network=forest \
--name=forest-"${CHAIN}" \
--env "FOREST_GC_TRIGGER_FACTOR=1.4" \
--volume=/home/"${NEW_USER}"/forest_data:/home/"${NEW_USER}"/forest_data:z \
--publish=2345:2345 \
--publish=6116:6116 \
--publish=12345:12345 \
--network=host \
--restart=always \
ghcr.io/chainsafe/forest:${FOREST_TAG} \
--config=/home/"${NEW_USER}"/forest_data/config.toml \
Expand All @@ -75,7 +72,6 @@ sudo --user="${NEW_USER}" -- \
docker run \
--detach \
--name=watchtower \
--network=forest \
--volume=/var/run/docker.sock:/var/run/docker.sock \
--restart=unless-stopped \
containrrr/watchtower \
Expand Down Expand Up @@ -132,7 +128,7 @@ EOF
sudo --user="${NEW_USER}" -- \
docker run \
--detach \
--network=forest \
--network=host \
--name=nri-prometheus \
--env LICENSE_KEY="${NR_LICENSE_KEY}" \
--volume=/home/"${NEW_USER}"/forest_data/config.yml:/config.yml \
Expand Down

0 comments on commit 712f6b3

Please sign in to comment.