fix docker compose config
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
docker-compose.yml
|
||||
|
||||
# Runtime data
|
||||
data/*
|
||||
|
||||
@@ -74,6 +74,14 @@ The repository includes `.env.example` as a template. Never commit `.env`, the S
|
||||
|
||||
## 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:
|
||||
|
||||
```bash
|
||||
@@ -153,7 +161,7 @@ When possible, the response is saved under `data/diagnostics/` for investigation
|
||||
├── static/ # static assets, including the favicon
|
||||
├── templates/ # Jinja2 dashboard templates
|
||||
├── Dockerfile
|
||||
├── docker-compose.yml
|
||||
├── docker-compose.example.yml
|
||||
├── main.py
|
||||
├── requirements.txt
|
||||
└── .env.example
|
||||
|
||||
@@ -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:-}
|
||||
Reference in New Issue
Block a user