Portainer Templates logo

Portainer Templates

Fireshare Fireshare

Stack

Multimedia

Fireshare: Share your game clips, videos, or other media via unique links.

Image details

Pulls: 649k
Architecture: amd64, arm64
Image size: 1.7 GB
Latest: 1.7
User: shaneisrael
Created: May 24, 2022
Updated: 7 days ago
Status: active

Source details

Stars: 1k
Forks: 90
Language: JavaScript
License: GPL-3.0
Updated: 7 days ago
Website: fireshare.net/

Configuration

Type
Compose
Platform
linux
Image
shaneisrael/fireshare:latest
Ports
8888:80
Volumes
/data : /portainer/Files/AppData/Config/fireshare/data/processed : /portainer/Files/AppData/Config/fireshare/processed/videos : /portainer/Files/AppData/Config/fireshare/videos
Env vars
ADMIN_USERNAME=fireadminADMIN_PASSWORD=firepwdSECRET_KEY=replace_this_with_some_random_string0x0MINUTES_BETWEEN_VIDEO_SCANS=1PUID=998PGID=100
Restart
unless-stopped
Source

Template by xneo1·Source

Standalone Install

Select an install method, to see config/commands for deploying Fireshare

Installation method

Install on Portainer

Import all app templates into your Portainer instance, for easy 1-click deploys

  1. Ensure both Docker and Portainer are installed, and up-to-date
  2. Log into your Portainer web UI
  3. Under Settings → App Templates, paste the below URL
  4. Head to Home → App Templates, and the list of apps will show up
  5. 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 demo
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 -d

More install options in our documentation, or see shaneisrael/fireshare for app-specific guidance.


<img src="https://raw.githubusercontent.com/shaneisrael/fireshare/HEAD/app/client/src/assets/logo.png" alt="Logo" width="120" height="160">

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

ContainerExtensionNotes
MP4.mp4Most compatible, recommended
MP4 (Apple).m4vIdentical to MP4, common on Apple devices
QuickTime.movCommon on macOS / iOS
WebM.webmOpen 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:
MountPurpose
/dataInternal database
/processedGenerated metadata (posters, metadata files)
/videosSource video directory to scan
/imagesSource 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=80

Update the volume paths and credentials, then run:
docker-compose up -d

Open 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:latest

Open http://localhost:8080.

Fireshare Lite

The fireshare: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.
StandardLite
GPU transcoding (NVIDIA NVENC)SupportedNot available
CPU transcodingSupportedSupported
Image sizeLarger (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 only

CPU 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

  1. Install the "NVIDIA Driver" plugin from Apps / Community Applications.
  2. Add to the Fireshare container environment:
```
ENABLE_TRANSCODING=true
TRANSCODE_GPU=true
NVIDIA_DRIVER_CAPABILITIES=all
```
  1. Add --gpus=all to "Extra Parameters".

Encoder Selection

Fireshare automatically selects the best available encoder.
GPU mode (TRANSCODE_GPU=true):
EncoderRequirement
AV1 (av1nvenc)RTX 40 series or newer
H.264 (h264nvenc)GTX 1050 or newer
CPU fallbackUsed if GPU encoding fails

CPU mode (TRANSCODE_GPU=false):
EncoderNotes
H.264Most compatible, faster encoding
AV1Best 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.
  1. Clone the repo:
```sh
git clone https://github.com/ShaneIsrael/fireshare.git
```
  1. Start backend services from the project root:
```sh
./run_local.sh
```
  1. Start the frontend:
```sh
cd app/client
npm install
npm start
```
  1. Open http://localhost:3000 and sign in with admin / admin.

Contributing

Contributions are welcome. For larger changes, open an issue first to align on scope.
  1. 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._
  1. Fork the repository
  2. Create a branch from develop
  3. Commit your changes
  4. Rebase on latest develop
  5. 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: 137 means killed, usually out of memory. 126 or 127 means 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:80 only 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 PUID and PGID variables (defaults 998:100) to match your own user, found with id $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 login to 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 no so 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.

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:

  • /data from /portainer/Files/AppData/Config/fireshare/data on the host
  • /processed from /portainer/Files/AppData/Config/fireshare/processed on the host
  • /videos from /portainer/Files/AppData/Config/fireshare/videos on 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 to fireadmin
  • ADMIN_PASSWORD, defaults to firepwd
  • SECRET_KEY, defaults to replace_this_with_some_random_string0x0
  • MINUTES_BETWEEN_VIDEO_SCANS, defaults to 1
  • PUID, defaults to 998
  • PGID, defaults to 100

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.