mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-03-02 00:04:45 -08:00
Remove env_file from docker-compose and use explicit environment variables
- Remove env_file directive from docker-compose.yml to eliminate .env file dependency
- Add explicit environment variable declarations with default values using ${VAR:-default} syntax
- Update port mapping to use UNRAID_MCP_PORT environment variable for both host and container
- Include all 11 environment variables used by the application with proper defaults
- Update README.md Docker deployment instructions to use export commands instead of .env files
- Update manual Docker run command to use -e flags instead of --env-file
This makes Docker deployment self-contained and follows container best practices.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11
README.md
11
README.md
@@ -77,11 +77,13 @@ uv sync
|
||||
The easiest way to run the Unraid MCP Server is with Docker:
|
||||
|
||||
```bash
|
||||
# Clone and configure
|
||||
# Clone repository
|
||||
git clone https://github.com/jmagar/unraid-mcp
|
||||
cd unraid-mcp
|
||||
cp .env.example .env
|
||||
# Edit .env with your Unraid API details
|
||||
|
||||
# Set required environment variables
|
||||
export UNRAID_API_URL="http://your-unraid-server/graphql"
|
||||
export UNRAID_API_KEY="your_api_key_here"
|
||||
|
||||
# Deploy with Docker Compose
|
||||
docker compose up -d
|
||||
@@ -97,7 +99,8 @@ docker build -t unraid-mcp-server .
|
||||
docker run -d --name unraid-mcp \
|
||||
--restart unless-stopped \
|
||||
-p 6970:6970 \
|
||||
--env-file .env \
|
||||
-e UNRAID_API_URL="http://your-unraid-server/graphql" \
|
||||
-e UNRAID_API_KEY="your_api_key_here" \
|
||||
unraid-mcp-server
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user