Installing Jellyfin with Docker Compose
This guide shows a simple way to install Jellyfin using Docker Compose on Ubuntu.
Create the project folder
mkdir -p ~/docker/jellyfin
cd ~/docker/jellyfin
Create the Docker Compose file
Create:
nano docker-compose.yml
Paste:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
network_mode: bridge
ports:
- "8096:8096"
volumes:
- ./config:/config
- ./cache:/cache
- /media:/media
restart: unless-stopped
Start Jellyfin
Run:
docker compose up -d
Access Jellyfin
Open:
http://YOUR_SERVER_IP:8096
Example:
http://192.168.1.50:8096
Notes
- Replace
/mediawith the path to your own media library - The
configfolder stores Jellyfin settings - The
cachefolder stores temporary files
Useful commands
View logs:
docker logs jellyfin
Restart container:
docker restart jellyfin
Stop container:
docker compose down