diff --git a/Dockerfile b/Dockerfile index f5e7cd3..a02d66b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,19 @@ EXPOSE 8080 HEALTHCHECK --interval=12s --timeout=12s --start-period=10s CMD node dist/src/healthcheck.js +# use level datastore by default +ENV FILE_DATASTORE_PATH=/data/ipfs/datastore + +# use filesystem blockstore by default +ENV FILE_BLOCKSTORE_PATH=/data/ipfs/blockstore + +# enable metrics by default +ENV METRICS=true + +# redirect ipfs/ipns paths to subdomains to prevent cookie theft by websites +# loaded via the gateway +ENV SUB_DOMAINS=true + # Use tini to handle signals properly, see https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#handling-kernel-signals ENTRYPOINT ["/usr/bin/tini", "-p", "SIGKILL", "--"]