add volumes and ports to expose
This commit is contained in:
parent
b177ded516
commit
adf2d22482
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user