Skip to content

feat: Add Dockerfile and environment variable support #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rblaine95
Copy link

@rblaine95 rblaine95 commented Apr 27, 2025

  • Create Dockerfile using php:8-apache base image
  • Modify config to use environment variables, retaining defaults
    • Use filter_var() for boolean environment variable handling

This PR introduces containerization while making the configuration more flexible by supporting environment variables, allowing for easier deployment across different environments without requiring code changes.


$ docker build -t simple-node-dashboard .
$ docker run -d \
  --name=simple-node-dashboard \
  --restart=unless-stopped \
  -p 80:80 \
  -e NETWORK=XMR \
  -e NODE_IP=1.1.1.1 \
  -e RPC_PORT=18089 \
  simple-node-dashboard

- Create Dockerfile using `php:8-apache` base image
- Modify config to use environment variables, retaining defaults
- Use `filter_var()` for boolean environment variable handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant