Install The Lounge Inside Docker Container on Linux

Install The Lounge Inside Docker Container on Linux

The Lounge is a web-based IRC (Internet Relay Chat) client that allows users to connect to IRC networks and participate in chat rooms directly through a web browser.

This tutorial explains how to install The Lounge inside a Docker container on Linux. Commands have been tested on Ubuntu.

Prepare environment

Make sure you have installed Docker in your system. If you are using Ubuntu, installation instructions can be found in the post.

Install The Lounge

  • Host network

Run the following command to create a container for The Lounge that uses host network:

docker run -d --name=thelounge --restart=always --network=host \
    -v /opt/thelounge/data:/var/opt/thelounge \
    thelounge/thelounge
  • User-defined bridge network

User-defined bridge network can be used for listening on different port. By default, The Lounge service is listening on port 9000. It can be changed with -p option.

docker network create app-net
docker run -d --name=thelounge --restart=always --network=app-net \
    -p 8080:9000 \
    -v /opt/thelounge/data:/var/opt/thelounge \
    thelounge/thelounge

Testing The Lounge

Run the following command to add admin user:

docker exec --user node -it thelounge thelounge add admin

This command will prompt to enter a password.

Once the user is created, open a web browser and go to http://<IP_ADDRESS>:9000, where <IP_ADDRESS> is the IP address of the system. Login to application using username and password.

The Lounge Inside Docker Container on Linux

Uninstall The Lounge

To completely remove The Lounge, remove its container:

docker rm --force thelounge

Remove The Lounge image:

docker rmi thelounge/thelounge

You can also remove The Lounge data:

sudo rm -rf /opt/thelounge

If a user-defined bridge network was created, you can delete it as follows:

docker network rm app-net

Leave a Comment

Cancel reply

Your email address will not be published.