
Copyparty Docker deployments are one of the most popular ways to run the file server on home servers, NAS devices and virtual private servers. A container keeps copyparty and its media tools separate from the rest of the system, makes updates as simple as pulling a new image, and fits neatly alongside other self-hosted services. This guide explains the available images, shows how to structure configuration and data folders, provides a working Compose file and covers the details that most often trip people up.
Why run copyparty in a container?
copyparty already runs from a single Python file, so you might wonder what a container adds. The answer lies in its optional dependencies. Thumbnails need Pillow, video previews and audio transcoding need FFmpeg, and extra image formats need further libraries. Installing these by hand on every server is tedious, and versions vary between distributions. The official images bundle the right tools, tested together, so media features work immediately.
Containers also make the service predictable. Your configuration lives in one folder, your files in another, and the program itself can be replaced at any time without touching either. If an update causes trouble, rolling back is a matter of starting the previous image tag.
The official images
copyparty is published on Docker Hub under the copyparty organisation and on the GitHub Container Registry. Several editions are available, each building on the one before.
- min contains copyparty alone, without thumbnails or transcoding, and is the smallest download.
- im adds thumbnails for popular image formats and reads media tags with Mutagen.
- ac adds audio and video thumbnails as well as audio transcoding, and is the edition the developer recommends.
- iv makes thumbnails of HEIF, AVIF and JPEG XL images faster.
- dj adds optional detection of musical key and tempo for DJs and music collectors.
The images support a wide range of architectures, including x86-64 and ARM, so the same instructions work on a desktop server and on a Raspberry Pi. For most people, ac is the right choice.
One limitation applies to every image: for legal reasons, they cannot generate thumbnails for HEIF or HEIC photographs or for H.265 video. If your library is dominated by iPhone photos in HEIC format, running copyparty directly on the host with the appropriate libraries may suit you better.
Planning your folders
A clean container setup separates three things: the configuration, the data you want to share, and copyparty’s own working files. The images expect configuration in the /cfg directory and, by convention, shared data in /w.
A sensible layout on the host looks like this.
- /srv/copyparty/cfg holds copyparty.conf and any additional configuration files.
- /srv/media holds the photos, music, documents or other files you want to share.
Create both directories before starting the container, and make sure the user Docker runs as can read and write them.
Writing the configuration file
The image needs a configuration file or command-line arguments to know what to share. Without one, it has nothing useful to serve. A minimal configuration that shares the data folder, gives everyone read access and grants one account full control looks like this.
[global]
e2dsa
e2ts
[accounts]
admin: ChooseAStrongPassword
[/]
/w
accs:
r: *
rwmda: adminThe global options e2dsa and e2ts switch on file indexing and media-tag indexing, which power search and the music features. Remove the r: * line if you do not want anonymous visitors to see anything.
A docker run command
For a quick start, a single command is enough.
docker run -d --name copyparty \
--restart unless-stopped \
-p 3923:3923 \
-v /srv/copyparty/cfg:/cfg \
-v /srv/media:/w \
copyparty/acThis maps port 3923, mounts the configuration and data folders, and restarts the container automatically after a reboot or failure.
A Docker Compose file
For long-term use, Docker Compose is tidier because the whole definition lives in a file you can keep under version control.
services:
copyparty:
image: copyparty/ac:latest
container_name: copyparty
restart: unless-stopped
ports:
- "3923:3923"
volumes:
- /srv/copyparty/cfg:/cfg
- /srv/media:/wSave it as compose.yaml in a folder of its own, then start it with docker compose up -d. Logs are available with docker compose logs -f.
Running as a non-root user
By default, many containers run as root internally, which can leave files owned by root on the host. The copyparty images can run as an ordinary user. Add a user line to the Compose service, matching the owner of your data folder.
user: "1000:1000"Find your own user and group IDs with the id command on the host. Running as a non-root user is good practice for any service that handles uploads from other people.
Enabling extra protocols
The web interface and WebDAV work over the same port, so no extra mapping is needed for them. FTP, SFTP and SMB use their own ports and must be enabled in the configuration and published by Docker. For example, enabling the FTP server on port 3921 also requires mapping that port, together with the passive port range that FTP uses for data connections.
Only expose the protocols you will actually use. Every open port is another door that needs securing.
Putting copyparty behind a reverse proxy
On a server that already runs other web services, a reverse proxy such as nginx, Caddy or Traefik usually handles HTTPS for everything. In that case, copyparty does not need a public port of its own; the proxy forwards traffic to it over the internal Docker network.
Two settings deserve attention. First, the proxy must allow large request bodies, or big uploads will fail; the upload chunks copyparty sends can be several megabytes each. Second, copyparty needs to know the real client address. Configure the proxy to pass a forwarding header, and tell copyparty which header to trust, so logs and rate limits reflect the visitor rather than the proxy.
Updating the container
Updating is where Docker shines.
docker compose pull
docker compose up -dCompose downloads the new image and recreates the container with the same configuration and volumes. Because your files and settings live on the host, nothing is lost. Check the release notes before updating, especially for any changes marked as breaking or security-related.
Troubleshooting common Docker issues
Container problems usually announce themselves in the logs, so docker logs copyparty is always the first step.
- If the container exits immediately, look for a syntax error in copyparty.conf or a missing configuration directory.
- If the web page loads but shows no files, confirm that the volume path in the configuration matches the /w mount.
- If uploads fail with permission errors, check the ownership of the host data folder against the user the container runs as.
- If thumbnails do not appear, make sure you are using the ac image rather than min.
- If the page cannot be reached, verify the port mapping and the host firewall.
Docker on NAS systems
Many NAS operating systems include a Docker interface. Synology Container Manager, QNAP Container Station, Unraid and TrueNAS all accept the same image and the same volume layout described above. The only difference is that you enter the paths and ports through a web form rather than a Compose file. Community guides and templates exist for most of these platforms, and the official documentation includes notes for Synology DSM in particular.
Security checklist for containerised copyparty
A container isolates copyparty from the host, but it does not make a careless configuration safe. Before exposing the service, work through a short checklist.
- Define accounts with strong passwords and remove anonymous write access.
- Mount only the folders that genuinely need to be shared.
- Run the container as a non-root user where possible.
- Publish only the ports you use, and prefer HTTPS through a proxy for remote access.
- Update the image regularly and read the release notes.
Choosing image tags wisely
The latest tag always points to the newest release, which is convenient but means an update can arrive whenever you pull. For servers where predictability matters, pin a specific version tag instead, such as one matching the release you tested. When a new release appears, read its notes, change the tag deliberately and recreate the container. This approach gives you the benefits of containers without unexpected changes on the next reboot.
Both Docker Hub and the GitHub Container Registry carry the same images, so you can choose whichever registry your environment reaches more reliably. The names differ slightly: on Docker Hub the recommended image is copyparty/ac, while on the GitHub Container Registry it is ghcr.io/9001/copyparty-ac.
Persisting the index and thumbnails
When indexing is enabled, copyparty keeps a small database and a thumbnail cache. By default, these live in a hidden folder inside each volume, which means they persist automatically because the volume is a host folder. If you would rather keep them separate from your files, the hist option lets you place them elsewhere, for example in a dedicated folder mounted into the container. Separating them keeps your shared folders clean and makes it easy to exclude caches from backups.
Health checks and monitoring
Compose can check that copyparty is responding and restart it if not. A simple health check requests the main page at regular intervals and marks the container unhealthy after repeated failures. Pair this with the restart policy, and most transient problems resolve themselves without intervention. If you already run a monitoring stack, copyparty can also expose metrics for Prometheus, which helps you watch storage growth and activity over time.
Frequently Asked Questions
Which copyparty Docker image should I use?
The ac image suits most people. It includes image, audio and video thumbnails as well as audio transcoding. Choose min if you want the smallest possible image and need no media features.
Where does the configuration file go in the container?
Mount a host folder to /cfg and place copyparty.conf inside it. The image reads configuration files from that directory at start-up.
Why does my container start but show an empty page?
The configuration probably does not define a volume, or its path does not match the folder you mounted. Check that the volume points to /w and that the host folder is mounted there.
Can I run copyparty in Docker on a Raspberry Pi?
Yes. The images are built for ARM as well as x86-64, so the same Compose file works on a Raspberry Pi running a 64-bit operating system.
How do I update copyparty in Docker?
Pull the latest image and recreate the container. With Compose, run docker compose pull followed by docker compose up -d.
Conclusion
Copyparty Docker deployments combine the server’s portability with the convenience of bundled media tools and effortless updates. Choose the ac image unless you have a specific reason not to, keep configuration and data in clearly separated host folders, write a short configuration file with proper accounts, and let Compose handle restarts and upgrades. With those foundations in place, your containerised file server will be easy to maintain for years.


