add volumes and ports to expose

This commit is contained in:
sneak committed 2018-10-02 16:26:42 -07:00
1 parent b177ded516
commit adf2d22482
2 files changed
+10

No files matched your search

+9
View File
@@ -17,3 +17,12 @@ ADD ./sync.run /etc/service/sync/run
ADD ./ipfsd.run /etc/service/ipfsd/run ADD ./ipfsd.run /etc/service/ipfsd/run
RUN chmod +x /etc/service/*/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
+1
View File
@@ -17,6 +17,7 @@ chown ipfs:ipfs $IPFS_PATH
if [[ ! -e $IPFS_PATH/config ]]; then if [[ ! -e $IPFS_PATH/config ]]; then
chpst -u ipfs $IPFS init --profile=badgerds chpst -u ipfs $IPFS init --profile=badgerds
chpst -u ipfs config profile apply server
chpst -u ipfs $IPFS config Datastore.StorageMax "4000GB" chpst -u ipfs $IPFS config Datastore.StorageMax "4000GB"
fi fi