To self-host Gopeed on a managed VPS is to run your downloads on a server of your own, which keeps working while your computer is off, and which our teams keep up to date and monitor day and night. Gopeed is a free, open source download manager under the GPL-3.0 license, with a web interface and an API. This guide follows its official Docker image at version 1.9.3, and we ran every command on a Simafri VPS before writing it: installation with Docker Compose, a password on the web interface, HTTPS, a first download, backups, a restore and an upgrade.
By Simon Vasconcelos Lee
Published on 2 December 202610 minute read
liwei2633/gopeed pinned to v1.9.3, with two folders next to compose.yaml, one for your downloads and one for its database, and port 9999 of the container published on 127.0.0.1 behind an HTTPS reverse proxy..env file: with GOPEED_PASSWORD set, the web interface asks for a sign-in and the API refuses every request without a token.GOPEED_WHITEDOWNLOADDIRS, and get your files from the server over SFTP.tar archives, Gopeed stopped for a few seconds. To update, change the image tag, then pull and recreate the container.Gopeed, short for Go Speed, is a download manager written in Go, with an interface built in Flutter. It runs on Windows, macOS, Linux, Android and iOS, and as a web version for servers, which is the one in the Docker image.
On a server, Gopeed keeps downloading when your computer is off, at the speed of the server’s connection, and the files wait for you in a folder you can reach over SFTP.
Gopeed is published under the GNU General Public License, version 3 (GPL-3.0). You can use it free of charge, copy it and modify it. If you distribute a modified version, you distribute its source code under the same license. Running the official image unchanged, as this guide does, asks nothing more of you. The software is provided without warranty.
Gopeed is a single program, without a database server beside it. Here is what we measured on our test VPS, with 2 vCPU and 4 GB of memory:
gopeed.db file, 32 KB with our settings and our first task. Then come your downloads, whose size is yours: the disk of the server is what to size.Server size therefore depends on the volume of files you keep and on the other applications you run beside Gopeed. On a managed VPS, tell us how much you download and we will recommend the right size, disk included.
The official image, liwei2633/gopeed, contains the web version of Gopeed: the download engine, its API and the web interface, served on port 9999. On a server with Docker Engine and its Compose plugin, installed from Docker’s repository for Ubuntu, create the folder of the downloads and the folder of the database:
mkdir -p /opt/gopeed/downloads /opt/gopeed/storage
Then put this compose.yaml in /opt/gopeed, based on the Docker commands of the installation page and the docker-compose.yml of the project:
services:
gopeed:
image: liwei2633/gopeed:v1.9.3
restart: unless-stopped
environment:
GOPEED_USERNAME: ${GOPEED_USERNAME:?set GOPEED_USERNAME in .env}
GOPEED_PASSWORD: ${GOPEED_PASSWORD:?set GOPEED_PASSWORD in .env}
GOPEED_WHITEDOWNLOADDIRS: /app/Downloads,/app/Downloads/*
volumes:
- ./downloads:/app/Downloads
- ./storage:/app/storage
ports:
- "127.0.0.1:8118:9999"
The username and the password go in a .env file next to it, which Docker Compose reads on its own. Create it readable by root only, then start Gopeed:
umask 077
printf 'GOPEED_USERNAME=admin\nGOPEED_PASSWORD=%s\n' "$(openssl rand -hex 16)" > .env
umask 022
docker compose up -d
docker compose ps
GOPEED_PASSWORD set, Gopeed shows a sign-in page and every call to its API needs the token that sign-in returns. The :? in compose.yaml refuses to start Gopeed if the variable is missing, so it never runs open by mistake.127.0.0.1: the documentation publishes port 9999 on every address of the server. Published locally, Gopeed is reachable only through the reverse proxy, over HTTPS, so the password never travels in clear text.downloads receives your files, and storage holds the gopeed.db database, with your settings and your tasks, and the logs. In Docker, Gopeed sets its download folder to /app/Downloads on its first start.GOPEED_WHITEDOWNLOADDIRS limits where a download may be saved: here, the downloads folder and its subfolders. On our test VPS, a download aimed at /app/storage was refused with “download directory is not in white list”.latest. A full version, here v1.9.3, lets you choose when each update happens.PUID and PGID to run it under another user and group ID.Gopeed starts within a few seconds. To check that it is ready and that its API is closed without a sign-in:
docker compose logs gopeed | grep 'Server start success'
curl -s http://127.0.0.1:8118/ | grep -o '<title>[^<]*</title>'
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:8118/api/v1/tasks
The first command returns “Server start success on http://[::]:9999”, the second the title of the interface, <title>Gopeed</title>, and the third 401: without a token, the API answers “unauthorized”.
The container serves Gopeed over HTTP, on port 8118 of the server. HTTPS is handled by a reverse proxy in front of it. We tested Caddy, installed from its official Debian and Ubuntu repository: it obtains the Let’s Encrypt certificate itself and renews it. Add this block to its configuration:
gopeed.example.com {
reverse_proxy 127.0.0.1:8118
}
systemctl reload caddy
curl -sI https://gopeed.example.com/
curl -s -o /dev/null -w '%{http_code}\n' https://gopeed.example.com/api/v1/tasks
HTTP/2 200 with the interface, and the API answered 401 through Caddy, as it does locally.Open your address: Gopeed shows its sign-in page, with a Username field, a Password field and a Login button. The username is admin, and the password was generated in .env, which this command displays:
grep GOPEED_PASSWORD /opt/gopeed/.env
You land on the task list, with a tab for running downloads, a tab for finished ones, and Tasks, Extensions and Settings in the side menu. The round + button at the bottom right is where you add a download.
On our test VPS, a wrong password was refused with a 401. We then downloaded a small public file of a fixed version, the LICENSE of Gopeed at v1.9.3, 35,149 bytes, through the same API the interface uses: the task was marked done, it appeared in the tab of finished downloads, and the file in /opt/gopeed/downloads had the same SHA-256 checksum as the original. We also changed a setting, the number of downloads that run at once, from 5 to 3, to check the backups further down.
Finished files are in /opt/gopeed/downloads on the server: copy them to your computer over SFTP, with the SSH access of your VPS. A folder chosen in Settings, or in a download category, must stay inside /app/Downloads, the only one allowed by GOPEED_WHITEDOWNLOADDIRS.
Gopeed also serves each finished file at an address of the form /fs/tasks/<task ID>/<file name>. On our test VPS, that address answered without a sign-in: the task ID, a random string of 21 characters, works like the key of a shared link. Treat such an address as you would a shared link, and remove the task from Gopeed once you no longer need it there.
A sign-in lasts seven days, according to the source code of the server, and a restart of Gopeed asks for a new one.
Gopeed keeps its data in two folders: storage, with the gopeed.db database of your settings and tasks, and downloads, with your files. Add .env and compose.yaml, and you can rebuild the installation anywhere. Gopeed keeps its database open while it runs, so the copy is made with the container stopped, for a few seconds. With a umask of 077, the archives are readable by root only:
mkdir -p -m 700 backups
docker compose stop
umask 077
tar -czf backups/gopeed-$(date +%F).tar.gz storage .env compose.yaml
tar -czf backups/downloads-$(date +%F).tar.gz downloads
umask 022
docker compose start
The first archive is small, 1.9 KB on our test VPS; the second grows with your files, so leave it out if your downloads are copies of files you can fetch again. Schedule this copy and send it off the server. Stored on the disk, the archives are also included in the server’s nightly backups.
On the same installation, or on a new one where the archive has given back .env and compose.yaml, stop Gopeed, remove the two folders, extract the archives, then start it again:
docker compose stop
rm -rf storage downloads
tar -xzf backups/gopeed-2026-11-20.tar.gz storage && tar -xzf backups/downloads-2026-11-20.tar.gz && docker compose start
The && chain stops at the first error: on our test VPS, a truncated archive ended with “Error is not recoverable: exiting now”, and nothing was started. We then tested the whole cycle: both folders removed, Gopeed started on an empty database, with no task and the default settings, then stopped and restored. The task of the LICENSE came back as done, the setting was back at 3, the file had the same checksum, and the sign-in worked at once.
Gopeed publishes its releases on GitHub, and the image follows on Docker Hub with the same tags; tags such as v2.0.0-beta.4 are previews. This guide pins v1.9.3, the latest release when we tested it: check the releases page for a newer one before you install. Take a backup, change the image tag in compose.yaml, then pull the new image and recreate the container:
docker compose pull
docker compose up -d
docker compose ps
Self-hosting means running the server on top of the application. On a managed VPS, our teams take charge of the server and proactively monitor your instance; Gopeed remains your software, with your downloads and your settings.
| Topic | Our teams | You |
|---|---|---|
| The server | System and security updates, server interventions included | The timing that suits you |
| Monitoring | Server monitored 24/7, with intervention without waiting for your call | Your downloads and your settings in Gopeed |
| Gopeed | Proactive monitoring: errors, slowdowns and disk space spotted, fix recommended | Its installation, updates, extensions and settings, which you apply, yourself or through your AI assistant |
| Access | The server that carries it, monitored and backed up | The password in .env and the files you share |
| Backups | Every night, encrypted and kept off the machine; restores included | Gopeed’s own archives, and the restore request, when you need one |
| Migration | Your current server migrated, free of charge | The timing of the switch |
If you would rather have our teams work inside the application itself, that service is billed by the hour or at a fixed rate, with an estimate shared before the work starts.
With a Simafri Managed VPS, our teams keep your Gopeed instance’s server up to date, monitor it day and night and step in without waiting for your call; they also proactively monitor your instance and recommend useful fixes, which you apply, yourself or through your AI assistant. Backups are encrypted every night and kept off the machine, restores are included, and migrating your current server is free.
Yes. Gopeed is under the GPL-3.0 license: you can run it for yourself, your family or your team with no license to buy. What remains is the cost of the server that runs it.
Use the liwei2633/gopeed image pinned to a version in a compose.yaml, with a downloads folder mounted on /app/Downloads and a storage folder on /app/storage. Put GOPEED_USERNAME and GOPEED_PASSWORD in a .env file, publish the container port 9999 on 127.0.0.1, run docker compose up -d, and put an HTTPS reverse proxy in front.
Set GOPEED_USERNAME and GOPEED_PASSWORD in the environment of the container. Gopeed then shows a sign-in page, and its API answers 401 to any request without the token that sign-in returns. Without a password, anyone who reaches the address can use it.
In /app/Downloads inside the container, the folder Gopeed sets on its first start in Docker. Mount a folder of the server there, such as /opt/gopeed/downloads, then fetch your files over SFTP.
Very little. On our test VPS, the container used about 30 MB just after a download and about 14 MB at rest, and the image takes about 45 MB of disk. What to plan for is the disk space of your downloads.
Stop the container, archive the storage folder, which holds gopeed.db with your settings and tasks, with .env and compose.yaml, archive the downloads folder if you want to keep the files, then start it again. Restore by extracting the archives into removed folders, Gopeed stopped.
Take a backup, change the image tag in compose.yaml, then run docker compose pull and docker compose up -d. Your tasks and settings stay in the storage folder: on our test VPS, they came through the upgrade from v1.9.2 to v1.9.3.
A managed VPS covers the server: system, security, monitoring and backups. Our teams also proactively monitor your instance and recommend useful fixes, which you apply. Work inside the application is billed by the hour or at a fixed rate.
Simafri
Let's talk about your project
Tell us what you need in a few words: we will get back to you quickly.
Thank you! Your request has been sent. We'll get back to you shortly.
Prefer email? Write to us at support@simafri.com.