Install SWAG (Secure Web Application Gateway) on Fedora CoreOS Latest

This tutorial will guide you through the installation of SWAG (Secure Web Application Gateway) from LinuxServer.io on Fedora CoreOS Latest using Docker.

Ingredients

To complete this tutorial, you will need:

Steps

1. Install Docker

Docker is a software platform for building and running applications in containers. To install Docker on your Fedora CoreOS Latest machine, follow these steps:

  1. Open a terminal window on your Fedora CoreOS Latest machine.
  2. Run the following command to install Docker:
sudo dnf install docker-ce
  1. Start the Docker service by running the following command:
sudo systemctl start docker
  1. Finally, enable the Docker service to start automatically at boot with the following command:
sudo systemctl enable docker

2. Pull SWAG Docker Container

To install SWAG, we will use the docker-compose.yml provided by the LinuxServer.io team.

  1. Create a new directory by running the following command:
mkdir swag
  1. Navigate to the newly created directory with the following command:
cd swag
  1. Download the docker-compose.yml file using the following command:
curl https://raw.githubusercontent.com/linuxserver/docker-swag/master/docker-compose.yml -o docker-compose.yml

3. Create Environment Variables

To get SWAG to work, you need to fill in a few sensitive environment variables. Replace the necessary variables with your information.

  1. Create a .env file by running the following command:
nano .env
  1. Fill in the necessary information in the .env file.
TZ=America/Los_Angeles
URL=<Your Domain Name>
SUBDOMAINS=<Your subdomains (comma separated)>
VALIDATION=http
  1. Save and close the file (CTRL+X, then Y, then ENTER).

4. Create Docker Containers

  1. Run the following command to create containers:
sudo docker-compose up -d

5. Verify

You can now visit your website using your browser, make sure you have correctly set up DNS records pointing to your server.

Congratulations, you have installed SWAG on Fedora CoreOS Latest using Docker!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!