fix docker compose config

This commit is contained in:
2026-09-03 12:25:52 +02:00
parent 29c6919d75
commit 95e2efecdb
3 changed files with 23 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
.env .env
.env.* .env.*
!.env.example !.env.example
docker-compose.yml
# Runtime data # Runtime data
data/* data/*
+9 -1
View File
@@ -74,6 +74,14 @@ The repository includes `.env.example` as a template. Never commit `.env`, the S
## Running with Docker ## Running with Docker
The repository contains `docker-compose.example.yml` as a portable default configuration. Copy it to `docker-compose.yml` before starting the service:
```bash
cp docker-compose.example.yml docker-compose.yml
```
The copied `docker-compose.yml` is ignored by Git, so it can be customized locally without affecting the public repository. The example exposes port `8000` directly, which is convenient for a local installation.
Build and start the service: Build and start the service:
```bash ```bash
@@ -153,7 +161,7 @@ When possible, the response is saved under `data/diagnostics/` for investigation
├── static/ # static assets, including the favicon ├── static/ # static assets, including the favicon
├── templates/ # Jinja2 dashboard templates ├── templates/ # Jinja2 dashboard templates
├── Dockerfile ├── Dockerfile
├── docker-compose.yml ├── docker-compose.example.yml
├── main.py ├── main.py
├── requirements.txt ├── requirements.txt
└── .env.example └── .env.example
+13
View File
@@ -0,0 +1,13 @@
services:
radiosync:
build: .
container_name: radiosync_hub
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- ./data:/app/data
environment:
- TZ=Europe/Warsaw
- RADIOSYNC_SECRET_KEY=${RADIOSYNC_SECRET_KEY:?Set RADIOSYNC_SECRET_KEY in .env}
- RADIOSYNC_CONFIG_KEY=${RADIOSYNC_CONFIG_KEY:-}