Skip to content

feat: Add Dockerfile and environment variable support#1

Open
rblaine95 wants to merge 1 commit intoTech1k:masterfrom
rblaine95:docker
Open

feat: Add Dockerfile and environment variable support#1
rblaine95 wants to merge 1 commit intoTech1k:masterfrom
rblaine95:docker

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