Public Repository

Last pushed: a year ago
Short Description
NGINX HTTP Loadbalancer
Full Description

NGINX HTTP Loadbalancer customized for appfxdesign

#Begin Dockerfile
FROM nginx

RUN mkdir -p /nginx

VOLUME /nginx

#end Dockerfile

docker build -t appfxdesign/nginx

sudo docker run --name nginx -v /home/ltcaosj/nginx/nginx.conf:/etc/nginx/nginx.conf:ro -v /home/ltcaosj/nginx:/nginx -d --net=light-server.net -p 80:80 -p 443:443 appfxdesign/nginx

#systemd unit file
[Unit]
Description=NGINX Container
After=docker.service
Requires=docker.service

[Service]
TimeoutStartSec=0
Restart=always
ExecStart=/usr/bin/docker start nginx

[Install]
WantedBy=multi-user.target

Docker Pull Command
Owner
appfxdesign

Comments (0)