Add Podman env template

This commit is contained in:
Nate Emmert committed 2026-03-13 09:34:59 -04:00
1 parent 18f777e3e7
commit 6e61d66869
2 files changed
+36 -3

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
PLEX_TOKEN=replace-with-your-plex-token
SERVER_IP=192.168.1.100
PLAYLIST_NAME=Journey FM Recently Played
SELECTED_STATIONS=journey_fm,spirit_fm,klove
AUTO_UPDATE=true
UPDATE_INTERVAL=15
UPDATE_UNIT=Minutes
CONTAINER_RUN_MODE=loop
+28 -3
View File
@@ -138,7 +138,13 @@ python main.py
Container mode is intended for scheduled/headless playlist updates. The container now runs as a long-lived loop and sleeps between syncs instead of relying on restart churn.
1. Create a `.env` file in the project root:
1. Copy `.env.example` to `.env` and fill in your Plex values.
```bash
cp .env.example .env
```
2. Edit `.env` in the project root:
```env
PLEX_TOKEN=your-plex-token
@@ -150,7 +156,7 @@ UPDATE_UNIT=Minutes
CONTAINER_RUN_MODE=loop
```
2. Build and run with Docker Compose:
3. Build and run with Docker Compose:
```bash
docker-compose up -d --build
@@ -162,7 +168,7 @@ Podman equivalent:
podman compose up -d --build
```
3. Trigger a one-off run and review logs:
4. Trigger a one-off run and review logs:
```bash
docker-compose run --rm -e CONTAINER_RUN_MODE=once journey-fm-playlist
@@ -184,6 +190,25 @@ Notes:
- In container mode, environment variables are preferred over local config or keyring storage.
- The Compose file is Podman-friendly because it uses a named volume instead of a source bind mount.
### Podman Quick Start
On a Podman host, the shortest path is:
```bash
git clone https://github.com/nmemmert/journey-fm-playlist.git
cd journey-fm-playlist
cp .env.example .env
podman compose up -d --build
```
Useful follow-up commands:
```bash
podman compose logs -f journey-fm-playlist
podman compose run --rm -e CONTAINER_RUN_MODE=once journey-fm-playlist
podman compose down
```
## GUI Notes
- Minimize-to-tray on close when tray is available.