diff --git a/Dockerfile b/Dockerfile index cf0fb93..b68d726 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,3 +17,12 @@ ADD ./sync.run /etc/service/sync/run ADD ./ipfsd.run /etc/service/ipfsd/run RUN chmod +x /etc/service/*/run +VOLUME /var/lib/ipfs +VOLUME /var/lib/ubuntumirror + +# ipfs ports +EXPOSE 4001 +EXPOSE 4002/udp +EXPOSE 5001 +EXPOSE 8080 +EXPOSE 8081 diff --git a/ipfsd.run b/ipfsd.run index 8f75cc7..cebc91f 100644 --- a/ipfsd.run +++ b/ipfsd.run @@ -17,6 +17,7 @@ chown ipfs:ipfs $IPFS_PATH if [[ ! -e $IPFS_PATH/config ]]; then chpst -u ipfs $IPFS init --profile=badgerds + chpst -u ipfs config profile apply server chpst -u ipfs $IPFS config Datastore.StorageMax "4000GB" fi