docker-nexus/README.md

43 lines
1.0 KiB
Markdown
Raw Normal View History

# docker-nexus
**A nginx/cgi/sshd server for prototyping services or data hubs.**
## Quick start
* Clone: `git clone ssh://git@gitlab.xmopx.net:222/dave/docker-nexus.git`
* Build: `cd docker-nexus ; docker build -t nexus .`
* Run: `docker run nexus`
## Usage
Nexus offers a couple services:
### SSHD
For shell related activities, an sshd daemon runs on the standard port. Username and password, by default, is `nexus`.
### Nginx
For accessing data or calling CGI scripts, nginx runs on the standard port. The document root is `/nexus/`.
### CGI
Standard CGI scripts can be placed in `/nexus/cgi-bin/`. Some sample scripts exist in `./examples/cgi-scripts/`.
### Cron
Cron is present in the container.
## Protips
* Drop executable scripts into `/startup.d/` for effortless startup tasks
* Persistance? You want to mount these files/dirs outside the container:
* `/nexus/` - webroot and recommended data store
* `/etc/ssh/keys/` - sshd key file directory
## TODO
* Allow ssh password to be set by passing an env var
* More sample CGI scripts