Unraid Setup¶
Run LightningROD on Unraid with Docker Compose Manager.
Note
This guide assumes you are using the Unraid Docker Compose Manager plugin and want LightningROD deployed as a stack.
Prerequisites¶
- Unraid server with Docker enabled
- Docker Compose Manager plugin
1. Clone the project into appdata¶
Open a terminal on your Unraid server (SSH, local terminal, or terminal add-on), then run:
2. Create a new stack¶
- Open the Docker page in the Unraid web UI.
- Scroll to the Docker Compose Manager section.
- Click Add New Stack.
- Name it (for example,
LightningROD).
3. Set the stack ENV file path¶
- Click the gear icon for the stack.
- Go to Edit Stack -> Stack Settings.
- Set ENV File Path to:
4. Configure the .env values¶
- Click the gear icon for the stack.
- Go to Edit Stack -> Env File.
- Set at least:
POSTGRES_USERPOSTGRES_PASSWORD
- Save the file.
Warning
Use a strong password for POSTGRES_PASSWORD and store it in your password manager.
5. Update the Compose File¶
- Click the gear icon for the stack.
- Go to Edit Stack -> Compose File.
- Use this Compose configuration:
docker-compose.yml
services:
db:
image: postgres:16
volumes:
- pgdata:/var/lib/postgresql/data
env_file: .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
start_period: 10s
restart: unless-stopped
web:
build:
context: /mnt/user/appdata/LightningROD
dockerfile: /mnt/user/appdata/LightningROD/docker/Dockerfile
ports:
- "8000:8000"
env_file: .env
environment:
- POSTGRES_HOST=db
depends_on:
db:
condition: service_healthy
restart: unless-stopped
volumes:
pgdata:
6. Optional UI labels and Web UI link¶
You can set icons and quick links in UI Labels for each service.
Example icon URLs/paths:
# db icon
https://www.postgresql.org/media/img/about/press/elephant.png
# web icon (if you saved a local PNG on your server)
/mnt/user/appdata/LightningROD/logo.png
For the web service Web UI field, use:
If you changed the external port, replace 8000 with that port.
7. Start the stack¶
Click Compose Up.
Verify¶
- Open
http://[IP]:8000(or your mapped external port) - Confirm the
dbandwebservices are running in Docker Compose Manager
You can now continue with Configuration and Data Import.