Self-host Athens with Levelrail
A Go module proxy that caches modules from upstream so builds stay fast and repeatable. Point GOPROXY at it from your CI or developer machines.
- Authorgomods
- LicenceMIT
- Memory128 MiB
- Services1
How to self-host Athens
-
Pull the images
One image is pulled on your server.
Show images
gomods/athens:v0.20.0
-
Create the app
One service starts in a single Compose app, with 1 named volume mount for your data, on port 3000.
-
Fill in the secrets
3 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
After the first start
- Set GOPROXY to the public address of this app, then run go build. Modules are cached on first request.
Athens requirements
- Memory
- About 128 MiB
- Architectures
- amd64 unknown, arm64 unknown
- Ports
- 3000
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- MIT, permissive license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Athens. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the Athens docs page.
Deploy Athens your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy Athens from the CLI
levelrail-cli templates deploy athens --name my-athens Deploy Athens with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/athens/deploy Athens configuration
Athens services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| athens | gomods/athens:v0.20.0 | 3000 | storage -> /var/lib/athens |
Athens environment variables
| Variable | Service | Value |
|---|---|---|
| ATHENS_DISK_STORAGE_ROOT | athens | Preset by the template |
| ATHENS_PORT | athens | Preset by the template |
| ATHENS_STORAGE_TYPE | athens | Preset by the template |
Ports and volumes
- Ports
- 3000
- Volumes
- 1 named mount: storage -> /var/lib/athens
Athens FAQ
How much memory does Athens need?
The catalog lists about 128 MiB of memory for Athens.
Does Athens run on arm64?
For Athens, arm64 support is not confirmed; amd64 is unknown.
What licence is Athens under?
Athens is licensed under MIT, which is permissive, with few conditions on reuse.
Does Athens need configuration before it starts?
No. The template fills in its own defaults.
Which ports does Athens use?
Athens listens on port 3000 inside the stack.
Where does Athens keep its data?
In a named volume: storage mounted at /var/lib/athens.
Can I deploy Athens on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Athens, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image gomods/athens:v0.20.0 is what you deploy there.