Fireshare
Stack
Fireshare: Share your game clips, videos, or other media via unique links.
Image details
Source details
Configuration
TypeComposelinuxshaneisrael/fireshare:latest8888:80/data : /portainer/Files/AppData/Config/fireshare/data/processed : /portainer/Files/AppData/Config/fireshare/processed/videos : /portainer/Files/AppData/Config/fireshare/videosADMIN_USERNAME=fireadminADMIN_PASSWORD=firepwdSECRET_KEY=replace_this_with_some_random_string0x0MINUTES_BETWEEN_VIDEO_SCANS=1PUID=998PGID=100unless-stoppedStandalone Install
Select an install method, to see config/commands for deploying Fireshare
Install on Portainer
Import all app templates into your Portainer instance, for easy 1-click deploys
- Ensure both Docker and Portainer are installed, and up-to-date
- Log into your Portainer web UI
- Under Settings → App Templates, paste the below URL
- Head to Home → App Templates, and the list of apps will show up
- Select Fireshare, fill in any config options, and hit Deploy
Template Import URL
https://raw.githubusercontent.com/Lissy93/portainer-templates/main/templates.json
Show Me
Original stackfile
The compose file this template deploys, straight from its repo:
services:
fireshare:
container_name: fireshare
image: shaneisrael/fireshare:latest
restart: unless-stopped
ports:
- "8888:80"
volumes:
- /portainer/Files/AppData/Config/fireshare/data:/data
- /portainer/Files/AppData/Config/fireshare/processed:/processed
- /portainer/Files/AppData/Config/fireshare/videos:/videos
environment:
- ADMIN_USERNAME=fireadmin
- ADMIN_PASSWORD=firepwd #please change this
- SECRET_KEY=replace_this_with_some_random_string0x0
- MINUTES_BETWEEN_VIDEO_SCANS=1 #how often should the system scan?
- PUID=998 #change this to match your server settings
- PGID=100 #change this to match your server settings
Or deploy it directly from the source:
git clone https://github.com/xneo1/portainer_templates
cd portainer_templates
docker compose -f Template/Stack/fireshare.yml up -dMore install options in our documentation, or see shaneisrael/fireshare for app-specific guidance.
Fireshare
Share your game clips, videos, or other media via unique links.
<br /><br />
<a href="https://github.com/shaneisrael/fireshare/actions">
<img alt="Docker Build" src="https://github.com/shaneisrael/fireshare/actions/workflows/docker-publish-main.yml/badge.svg" />
</a>
<a href="https://hub.docker.com/r/shaneisrael/fireshare">
<img alt="Docker Pulls" src="https://img.shields.io/docker/pulls/shaneisrael/fireshare?label=docker%20pulls">
</a>
<a href="https://hub.docker.com/r/shaneisrael/fireshare/tags?page=1&ordering=last_updated">
<img alt="GitHub tag (latest SemVer)" src="https://img.shields.io/github/v/tag/shaneisrael/fireshare?label=version">
</a>
<a href="https://github.com/shaneisrael/fireshare/stargazers">
<img alt="GitHub stars" src="https://img.shields.io/github/stars/shaneisrael/fireshare">
</a>
<br /><br />
<a href="https://www.buymeacoffee.com/shaneisrael">
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="41" width="174" />
</a>
<br /><br />
<a href="https://demo.fireshare.net">Live Demo</a>
·
<a href="https://github.com/ShaneIsrael/fireshare/issues">Report a Bug</a>
If Fireshare is useful to you, GitHub Sponsors is the best way to support development. It keeps the demo server running and helps me carve out time on weekends for new features and updates.
Key Features
- Share videos through unique links
- Public / private feeds (private is link-only)
- Video transcoding with CPU or GPU
- Password protected videos
- Game-based organization with cover art
- Folder sharing
- Mobile device support
- Uploads (optional, can be restricted)
- Video view counting
- Video cropping
- Video tags for improved search and categorization
- Open Graph metadata for rich link previews
- Notifications to Discord and others
- RSS feed for new public videos
- LDAP support
Supported Video Formats
| Container | Extension | Notes |
|---|---|---|
| MP4 | .mp4 | Most compatible, recommended |
| MP4 (Apple) | .m4v | Identical to MP4, common on Apple devices |
| QuickTime | .mov | Common on macOS / iOS |
| WebM | .webm | Open format, browser-native |
Supported encodings: H.264 (AVC), H.265 (HEVC), AV1, VP9.
Files must be in a supported format because the original file is always served directly to the viewer. Transcoding (when enabled) only generates additional lower-quality versions for adaptive streaming; the original is never modified.
Navigation
Dashboard
!card-viewcard-view
Automatic Game Organization
!foldersfolders
!folders-gamefolders-game
Video Details
!editedit
Public / Private Uploading
!uploadinguploading
Installation
Fireshare is designed to run in Docker.Required volume mounts:
| Mount | Purpose |
|---|---|
/data | Internal database |
/processed | Generated metadata (posters, metadata files) |
/videos | Source video directory to scan |
/images | Source image directory to scan |
Docker Compose
services:
fireshare:
container_name: fireshare
image: shaneisrael/fireshare:latest-lite
ports:
- "8080:80"
volumes:
- /path/to/data:/data
- /path/to/processed:/processed
- /path/to/videos:/videos
- /path/to/images:/images
environment:
- ADMIN_USERNAME=your-admin-username
- ADMIN_PASSWORD=your-admin-password
- SECRET_KEY=replace_with_random_string_can_be_anything
# The domain your instance is hosted at. e.x: demo.fireshare.net
# this is required for opengraph to work correctly for shared links.
- DOMAIN=
# PUID/PGID: the user/group ID the container runs as. Files written to your
# volumes (data, processed, videos, images) will be owned by this user. Set these to
# match the owner of your host directories to avoid permission errors.
# Run `id` on your host to find your UID and GID.
- PUID=1000
- PGID=1000
# The port the web server (nginx) listens on inside the container (default: 80).
# Leave this alone and change the host-side "ports" mapping above unless you run
# with network_mode: host, where "ports" is ignored and this becomes the host port.
# - FIRESHARE_PORT=80Update the volume paths and credentials, then run:
docker-compose up -dOpen
http://localhost:8080.Docker Run
docker run --name fireshare \
-v $(pwd)/fireshare/data:/data:rw \
-v $(pwd)/fireshare/processed:/processed:rw \
-v /path/to/my/videos:/videos:rw \
-v /path/to/my/images:/images:rw \
-p 8080:80 \
-e ADMIN_USERNAME=your-admin-username \
-e ADMIN_PASSWORD=your-admin-password \
-e PUID=user-id-with-read-write-permissions \
-e PGID=group-id-with-read-write-permissions \
-d shaneisrael/fireshare:latestOpen
http://localhost:8080.Fireshare Lite
Thefireshare:latest-lite image is a smaller alternative that uses the system-provided FFmpeg instead of the CUDA-enabled build included in the standard image. It is a good fit for most users who do not need GPU transcoding.| Standard | Lite | |
|---|---|---|
| GPU transcoding (NVIDIA NVENC) | Supported | Not available |
| CPU transcoding | Supported | Supported |
| Image size | Larger (CUDA libraries) | Smaller |
Use the lite image by appending
-lite to your tag:Note: Setting TRANSCODE_GPU=true has no effect in the lite image. GPU transcoding is permanently disabled regardless of environment variables.Configuration
LDAP
See LDAP.md for setup instructions.Transcoding (Optional)
When enabled, Fireshare will create lower quality versions of your original supported file type videos. Your viewers can then choose to play your videos at lower qualities that their internet can handle. Fireshare will also attempt to automatically downgrade the quality of a viewer who is constantly buffering.Transcoding is off by default. To enable it, set the following environment variables:
ENABLE_TRANSCODING=true
TRANSCODE_GPU=true # optional, NVIDIA onlyCPU transcoding works out of the box. For NVIDIA GPU transcoding, you only need an NVIDIA GPU on the host. The image handles drivers and toolkit.
GPU requirements: NVIDIA GPU with NVENC support.
Unraid Setup
- Install the "NVIDIA Driver" plugin from Apps / Community Applications.
- Add to the Fireshare container environment:
```
ENABLE_TRANSCODING=true
TRANSCODE_GPU=true
NVIDIA_DRIVER_CAPABILITIES=all
```- Add
--gpus=allto "Extra Parameters".
Encoder Selection
Fireshare automatically selects the best available encoder.GPU mode (
TRANSCODE_GPU=true):| Encoder | Requirement |
|---|---|
| AV1 (av1nvenc) | RTX 40 series or newer |
| H.264 (h264nvenc) | GTX 1050 or newer |
| CPU fallback | Used if GPU encoding fails |
CPU mode (
TRANSCODE_GPU=false):| Encoder | Notes |
|---|---|
| H.264 | Most compatible, faster encoding |
| AV1 | Best compression, slower |
Docker Environment Variables
See EnvironmentVariables.md for the full list of available environment variables.Local Development
Requirements: Python 3, Node.js, and npm.- Clone the repo:
```sh
git clone https://github.com/ShaneIsrael/fireshare.git
```- Start backend services from the project root:
```sh
./run_local.sh
```- Start the frontend:
```sh
cd app/client
npm install
npm start
```- Open
http://localhost:3000and sign in withadmin/admin.
Contributing
Contributions are welcome. For larger changes, open an issue first to align on scope.- Know how to code! I DO NOT WANT VIBE CODERS SUBMITTING PRs
AI assisted coding is fine if you can read, understand, and validate AI code.
_Asking AI to review itself doesn't count as reading, understanding, and validating AI code._- Fork the repository
- Create a branch from
develop - Commit your changes
- Rebase on latest
develop - Open a pull request to
develop
For issues and feature requests, visit the issue tracker.
Please DO NOT open a pull request for a feature or addition that was not previously discussed with me. Pull requests that do this will be automatically closed.
Database Changes
If you update models, create a migration and review it before opening a pull request.Troubleshooting
See TROUBLESHOOTING.md for a full guide covering installation issues, playback problems, permission errors, transcoding, LDAP, and more.Star History
If you like the project, consider giving it a star. It helps increase visibility and supports continued development.<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=shaneisrael/fireshare&type=date&theme=dark&legend=top-left" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=shaneisrael/fireshare&type=date&legend=top-left" />
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=shaneisrael/fireshare&type=date&legend=top-left" /> ---
Serve Fireshare on your own domain behind Caddy, Nginx or Traefik. Fill in your domain and copy the result. It's a starting point, some apps need their own base URL or extra headers set too.
Proxying fireshare.example.com to http://fireshare:80
Add this to your Caddyfile
fireshare.example.com {
reverse_proxy http://fireshare:80
}Check the logs first
Nine times out of ten the logs tell you exactly what went wrong.
- In Portainer, go to Containers, click the container, then Logs. Or run
docker logs <container> - Exit codes help too:
137means killed, usually out of memory.126or127means the command inside the image is broken.
Port already in use
If deployment fails with "Bind for 0.0.0.0:8888 failed: port is already allocated", something else on your server is using that port.
- Find what's using it:
sudo ss -tlnp | grep :8888 - Stop the other service, or pick a different host port. In
8888:80only the left number is yours to change, the right one belongs to the app.
Running but the page won't load
The container is up but nothing appears in your browser.
- Use your server's real IP:
http://your-server-ip:8888. The 0.0.0.0 link Portainer shows isn't a real address. - Give it a minute after first deploy, fireshare can take a while to initialise.
- Make sure your firewall allows the port, e.g.
sudo ufw allow 8888
Permission denied on volumes
If the logs show "permission denied", the app can't write to its data folder on the host.
- Fix the ownership:
sudo chown -R 998:100 /portainer/Files/AppData/Config/fireshare/data(and the same for the other mapped folders) - Or set the
PUIDandPGIDvariables (defaults 998:100) to match your own user, found withid $USER
Image won't pull
Test the pull directly on the host: docker pull shaneisrael/fireshare:latest
- "manifest unknown" means the tag no longer exists. This template uses
latest, so try pinning a specific version instead. - "toomanyrequests" is the Docker Hub rate limit. Log in with
docker loginto raise it. - "no space left on device" means a full disk. Reclaim space with
docker system prune
"exec format error"
This means the image was built for a different CPU architecture than your server.
- This image supports:
amd64, arm64 - Check yours with
uname -m: x86_64 is amd64, aarch64 is arm64. Raspberry Pi and other ARM boards are the usual culprits.
Container keeps restarting
The unless-stopped restart policy relaunches the app after every crash, so the real error can scroll past.
- Check the logs right after a restart, the last few lines before it died are the useful ones.
- Get the exit code with
docker inspect <container> --format '{{.State.ExitCode}}' - Still stuck? Redeploy once with the restart policy set to
noso the failure stays visible.
Stack won't deploy
Compose stacks fail fast on small mistakes, and Portainer shows the reason just above the editor.
- YAML only accepts spaces for indentation, a single tab breaks the whole file.
Raise an issue
Found something which isn't working as it should? Here's how to report it.
- Bug within the app: Open an issue on shaneisrael/fireshare
- Template not working: Open an issue on xneo1/portainer_templates
- This website not working: Open an issue on lissy93/portainer-templates
A Compose stack
Fireshare is a Compose stack, a set of containers defined in one file and brought up together by Portainer, then started and stopped as a single app.
The app image
An image is the app packed up ready to go, everything Fireshare needs bundled into one download. This template pulls shaneisrael/fireshare:latest, which Docker fetches once (about 1.7 GB) and then starts your own copy from.
Where the image comes from
Docker pulls its images from registries, public libraries of ready-built apps. Fireshare's comes from Docker Hub, published by shaneisrael.
Version tags
The bit after the colon in the image name is the version tag. Here it's latest, which always points at the newest build, so a redeploy can bump you to a newer release without you asking. Newest right now is 1.7. Pin a specific tag if you would rather stay on one version.
Which machines it runs on
Every image is built for particular CPU types. This one ships for amd64, arm64, so it runs on both regular x86 servers and ARM boards like a Raspberry Pi.
Ports
A port is the door the app answers on. A mapping like 8888:80 means it's reachable on port 8888 of your server, where the left number is yours to change and the right one belongs to the app. Once it's running, open http://your-server-ip:8888 in a browser. It opens:
8888:80, likely the web interface
Volumes
A volume is where Fireshare keeps its files so they survive an update or a restart. Without one, anything it saves would sit inside the container and vanish the moment it's recreated. This template mounts:
/datafrom/portainer/Files/AppData/Config/fireshare/dataon the host/processedfrom/portainer/Files/AppData/Config/fireshare/processedon the host/videosfrom/portainer/Files/AppData/Config/fireshare/videoson the host
Environment variables
Environment variables are the settings you hand over when you deploy, things like a password or a timezone. Fireshare takes 6 of them, all with defaults you can leave alone or tweak:
ADMIN_USERNAME, defaults tofireadminADMIN_PASSWORD, defaults tofirepwdSECRET_KEY, defaults toreplace_this_with_some_random_string0x0MINUTES_BETWEEN_VIDEO_SCANS, defaults to1PUID, defaults to998PGID, defaults to100
Restart policy
The restart policy here is unless-stopped, so Docker restarts Fireshare after a crash or reboot, but leaves it off when you stop it on purpose. You can change this on the deploy screen. The choices are no (never restart), on-failure (only after a crash), unless-stopped (restart unless you stop it), and always (bring it back no matter what).
Users and permissions
The PUID and PGID settings tell it which user and group to act as on your host. Point them at your own account (find yours with id $USER) so the files it writes into your mounted folders come out owned by you rather than root.
Networking
Nothing custom is set, so Fireshare sits on Docker's default bridge network: its own private space that reaches the outside world only through the ports it publishes.
Container name
Once it's deployed, Portainer names the container fireshare. That's what you'll spot in the containers list and use in commands like docker logs fireshare.
Platform
The platform is linux, the kind of system the container is built to run on. Docker and Portainer handle this on a normal Linux server.
Open source license
Fireshare is open source, released under the GPL-3.0 license. In plain terms the code is out in the open, so you're free to run it and change it to fit what you need.
Portainer app templates
Zooming out, this whole page comes from a Portainer app template: a short recipe telling Portainer how to set Fireshare up. Add the template list to Portainer once, then deploying Fireshare is a click rather than a wall of config.