add volumes and ports to expose

This commit is contained in:
Jeffrey Paul 2018-10-02 16:26:42 -07:00
parent b177ded516
commit adf2d22482
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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