Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.59 KB

Docker.md

File metadata and controls

43 lines (33 loc) · 1.59 KB

Running TailsX with Docker

Table of contents

TailsX can be ran under a Docker container easily.

Modify the Dockerfile (aptly named Dockerfile)

Add your domain

There should be a line in the Dockerfile that looks like this;

# ENV DOMAIN=https://www.yourdomain.com

Uncomment this line by removing the # and change the domain to your own domain.

Configuring Gunicorn (Optional)

The default configuration of Gunicorn works, but you can optionally configure it to your liking.

The command that will be called can be found in CMD (see the very end of the file). The arguments are seperated into different strings in a list.

See the gunicorn docs on running gunicorn and the Docker docs on how the CMD instruction works.

Build & run TailsX

Build an image and tag it with tailsx:latest.

docker build -t tailsx:latest .

Start the image with docker-compose.

docker-compose up

NOTE: If you experience any permissions errors, you can try running both commands with sudo.

Test your server

See here on testing your server.