Skip to content
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

Nginx port and environment options #10

Merged
merged 2 commits into from
Mar 27, 2017

Conversation

TBBle
Copy link
Contributor

@TBBle TBBle commented Mar 27, 2017

As discussed in #9, this provides a --port option for cyber-dojo, as well as support for an nginx.env file similar to the existing grafana.env.

The target use-case is to expose cyber-dojo running on a shared machine via https://github.com/jwilder/nginx-proxy. This proxy will publish any exposed port using name-based virtual hosting, according to a VIRTUAL_HOST environment variable set in the container.

TBBle added 2 commits March 28, 2017 02:41
Creating an nginx.env next to the cyber-dojo script will cause its
contents to be read by Docker Compose, setting the provided environment
variables inside the container.
@TBBle
Copy link
Contributor Author

TBBle commented Mar 27, 2017

I wasn't sure where to document the nginx.env file. The grafana.env file isn't documented, but as noted in cyber-dojo-retired/grafana#1, it's still WIP.

@JonJagger JonJagger merged commit b8c7fba into cyber-dojo:master Mar 27, 2017
@TBBle TBBle deleted the nginx-port-and-environment-options branch March 28, 2017 14:17
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.

2 participants