Files
transfer/docs/deployment-docker.md
Christoph Wiechert d2ff07392b Add some docs
2017-05-11 23:46:52 +02:00

1.1 KiB

Deployment using Docker

Using Docker is the most easy and recommended way to run PsiTransfer. There is an official Container which is updated whenever a GitHub push occurs.

docker run -d -v $PWD/data:/data -p 3000:3000 psitrax/psitransfer

The above command starts the PsiTransfer Docker container and

  • -d puts the process into background (daemon mode)
  • -v mounts the data volume into the container
  • -p forwards the traffic from port 3000 into the container

Protipp: There are several container tags if you want to use a specific version. E.g. 1 is always the latest stable 1.x.x and 1.1 correlates with 1.1.x.

If you want to customize some PsiTransfer configurations use environment parameters by adding -e flags to the docker run command.

docker run -v $PWD/data:/data -p 3000:8080 \
  -e PSITRANSFER_PORT=8080 \
  -e PSITRANSFER_DEFAULTRETENTION=3600 \
  psitrax/psitransfer

Protipp: By adding --restart always Docker will autostart the container after reboots.