You will only need to install the unit file it will pull everything else it needs automatically and it will automatically pull the latest version of the image every time it restarts.
NOTE: This is a private repo so for docker to pull the image correctly you have to be logged into docker.
docker login -u callforamerica -p <pass>
cp genlb.service /etc/systemd/system/
echo "UPSTREAM_SERVERS=<ip-address>,<ip-address>,<ip-address>,<ip-address>" >> /etc/default/genlb.env
systemctl start genlb
systemctl enable genlb
# without follow
docker logs genlb.service
# with follow
docker logs -f genlb.service
# get logs for the systemd unit supervising the container
journalctl -f -u genlb
curl -v localhost:80
systemctl status genlb
systemctl restart genlb
systemctl stop genlb
systemctl start genlb
systemctl disable genlb
The upstream servers are read from the environment variable UPSTREAM_SERVERS of which the value is a comma delimited list of ip addresses or hostnames.
/etc/default/genlb.env. On the first line you'll see UPSTREAM_SERVERS=xxx.xxx.xxx.xxx,xxx.xxx.xxx.xxx,etc.systemctl restart genlb.systemctl status genlbGoto the following url: http://localhost/basic_status
Credentials:
user: admin
pass: <same as docker login>
Stats are really basic on open source nginx and nginx plus is ridiculous. If you need more stats you should use another tool that parses the logs like GoAccess https://goaccess.io/
Content type
Image
Digest
Size
92.6 MB
Last updated
over 9 years ago
docker pull callforamerica/genlb