Quickstart Guide¶
Get Pathary up and running in 5 minutes with Docker.
Prerequisites¶
Before you begin, you'll need:
- Docker and Docker Compose installed (Get Docker)
- TMDB API Key for movie data (Get your free key here)
Why TMDB?
Pathary uses The Movie Database (TMDB) API to fetch movie information, posters, and metadata. The API is free for non-commercial use.
Installation¶
Step 1: Clone the Repository¶
Step 2: Configure Environment¶
Create a .env.local file with your TMDB API key:
cat > .env.local << 'EOF'
TMDB_API_KEY=<tmdb_api_key>
HTTP_PORT=80
APPLICATION_URL=http://localhost
EOF
Keep Your API Key Secret
Never commit .env.local to git - it's already in .gitignore to protect your API key.
Step 3: Start Pathary¶
For local development (SQLite):
docker compose --env-file .env.local \
-f docker-compose.yml \
-f docker-compose.development.yml \
up -d
For local development (MySQL):
docker compose --env-file .env.local \
-f docker-compose.yml \
-f docker-compose.development.yml \
-f docker-compose.mysql.yml \
up -d
The application will be available at http://localhost/ (port 80).
Port Mapping
Docker maps your host port 80 to the container's internal port 8080. Access the app at http://localhost/ (no port number needed).
Step 4: Complete First-Time Setup¶
On first launch, you'll be automatically redirected to the setup wizard at /init:
- Open your browser and navigate to
http://localhost/ - You'll be redirected to
http://localhost/init - Follow the wizard to create your admin account with 2FA
The wizard guides you through:
- Creating your admin account
- Setting up two-factor authentication (2FA)
- Generating recovery codes
- Completing the setup
For detailed screenshots and troubleshooting, see the First-Time Setup Guide.
Quick Reference¶
Check if Pathary is Running¶
Stop Pathary¶
Restart Pathary¶
Access the Database (MySQL)¶
MySQL Password Syntax
Note: -p<database_password> has NO space between -p and the password. This is required MySQL syntax.
Access the Application Container¶
Common Issues¶
Port 80 Already in Use¶
If port 80 is already in use on your machine, change the port mapping:
-
Edit
.env.local: -
Update your docker compose command to expose the chosen port:
-
Access the app at
http://localhost:8080/
"TMDB_API_KEY not set" Warning¶
This warning appears if the API key isn't found. Ensure:
.env.localexists in thepathary/directory- The file contains
TMDB_API_KEY=<tmdb_api_key> - You're using
--env-file .env.localin the docker compose command
Database Migration Errors¶
The Docker container automatically runs database migrations on startup. If migrations fail:
# Check logs for specific error
docker compose logs pathary
# Manually run migrations
docker compose exec app php vendor/bin/phinx migrate -c ./settings/phinx.php
Storage Permission Errors¶
If you see permission errors related to /app/storage:
Or set matching user/group IDs in .env.local:
Next Steps¶
Now that Pathary is running:
- First-Time Setup Guide - Detailed walkthrough of the setup wizard
- Configuration - Environment variables and settings reference
- Features - Explore what Pathary can do
- Production Deployment - Deploy for production use
Need Help?¶
- FAQ - Frequently asked questions
- GitHub Issues - Report bugs or request features
- GitHub Wiki - Community guides and tips