A Docker image for the twserver-go project based on the official Alpine Linux image.
Docker Tag | Version | Platform | Description |
---|---|---|---|
latest | 1.1 | amd64, arm64 | Latest release |
Usage • Using Compose • Manual build • License
- Create and run a container with a volume attached to keep the data safe:
docker run -d \
--name twserver \
-p 8080:8080/tcp \
-v twserver_data:/home/tw \
-i k4rian/twserver
- Same as above but using a different port (
8080
(default) ->52041
):
docker run -d \
--name twserver \
-p 52041:8080/tcp \
-v twserver_data:/home/tw \
-i k4rian/twserver
- Deploying the server with the provided compose file:
docker compose -p twserver up -d
A named volume is defined in order to store the server data that can be recovered if the container is removed and restarted.
Requirements:
— Docker >= 18.09.0
— Git (optional)
Like any Docker image the building process is pretty straightforward:
- Clone (or download) the GitHub repository to an empty folder on your local machine:
git clone https://github.com/K4rian/docker-twserver.git .
- Then run the following command inside the newly created folder:
docker build --no-cache -t k4rian/twserver .