TrueNAS: Full Setup Guide for Setting Up Portainer, Containers and Tailscale #Ultimatehomeserver
3 min read
1 year ago
Published on Aug 09, 2024
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial guides you through setting up Portainer and Tailscale on TrueNAS, transforming your home server into a powerful tool for container management and secure remote access. Following these steps, you'll be able to manage Docker containers easily and access your home server securely from anywhere.
Step 1: Prepare Your TrueNAS Environment
- Ensure that TrueNAS is installed and running on your server.
- Access the TrueNAS web interface using your server's IP address.
- Create a new dataset for your Docker containers:
- Navigate to Storage > Pools.
- Click on your pool and select Add Dataset.
- Name the dataset (e.g.,
docker), and configure permissions as needed.
Step 2: Install Docker on TrueNAS
- Open the TrueNAS web interface.
- Go to Apps and click on Available Applications.
- Search for and select Docker to initiate its installation.
- Follow the prompts to complete the Docker installation.
Step 3: Set Up Portainer
- After Docker is installed, go back to Apps and select Installed Applications.
- Click Add Application and search for Portainer.
- Configure Portainer installation settings:
- Choose the dataset created in Step 1 for storage.
- Set the network type (usually bridge).
- Specify resource limits if necessary.
- Deploy the Portainer app and wait for it to install.
Step 4: Access Portainer
- Once installed, access Portainer by navigating to
http://<YourTrueNASIP>:9000in your web browser. - Set up an admin account by following the on-screen instructions.
- Connect Portainer to the Docker environment to manage your containers.
Step 5: Install Tailscale
- To install Tailscale, you'll need to set up a new Docker container:
- Go to Portainer and click on Containers.
- Select Add Container and enter the following details:
- Name:
tailscale - Image:
tailscale/ts - Network:
host - Restart policy: Always
- Name:
- Under Advanced container settings, add the necessary environment variables for Tailscale authentication.
- Deploy the container and wait for the installation process to complete.
Step 6: Configure Tailscale
- Access the Tailscale admin panel by navigating to
http://<YourTrueNASIP>:8080(or the port you configured). - Log in with your Tailscale account.
- Follow the prompts to authenticate and connect your TrueNAS server to your Tailscale network.
- Once connected, you can access your home server securely from anywhere using Tailscale.
Conclusion
Congratulations! You have successfully set up Portainer and Tailscale on your TrueNAS server. You can now manage Docker containers conveniently through Portainer and access your server securely via Tailscale. As next steps, consider exploring the various features of Portainer for container management and further securing your Tailscale setup by configuring access controls.