mirror of
https://github.com/casjaysdevdocker/nginx
synced 2026-06-23 20:01:02 -04:00
63b0f2c2dcf4cbc622e3128343957f5c554d76a4
Update the embedded entrypoint copies in rootfs/ to match the upstream template change. Internal state files renamed to dotfiles so they're not matched by `/run/*.pid` cleanup globs: - /run/init.d/entrypoint.pid -> /run/.entrypoint.pid - /run/no_exit.pid -> /run/.no_exit.pid - /run/backup.pid -> /run/.backup.pid - /run/__start_init_scripts.pid -> /run/.start_init_scripts.pid Per-service PIDs in /run/init.d/ are unchanged. rootfs/usr/local/bin/entrypoint.sh rootfs/usr/local/etc/docker/functions/entrypoint.sh rootfs/usr/local/etc/docker/init.d/99-nginx.sh rootfs/usr/local/share/template-files/config/env/default.sample rootfs/usr/local/share/template-files/config/env/examples/zz-entrypoint.sh
👋 Welcome to nginx 🚀
nginx README
Install my system scripts
sudo bash -c "$(curl -q -LSsf "https://github.com/systemmgr/installer/raw/main/install.sh")"
sudo systemmgr --config && sudo systemmgr install scripts
Automatic install/update
dockermgr update nginx
Install and run container
mkdir -p "$HOME/.local/share/srv/docker/nginx/volumes"
git clone "https://github.com/dockermgr/nginx" "$HOME/.local/share/CasjaysDev/dockermgr/nginx"
cp -Rfva "$HOME/.local/share/CasjaysDev/dockermgr/nginx/rootfs/." "$HOME/.local/share/srv/docker/nginx/volumes/"
docker run -d \
--restart always \
--privileged \
--name casjaysdevdocker-nginx \
--hostname nginx \
-e TZ=${TIMEZONE:-America/New_York} \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-nginx/volumes/data:/data:z" \
-v "$HOME/.local/share/srv/docker/casjaysdevdocker-nginx/volumes/config:/config:z" \
-p 80:80 \
casjaysdevdocker/nginx:latest
via docker-compose
version: "2"
services:
ProjectName:
image: casjaysdevdocker/nginx
container_name: casjaysdevdocker-nginx
environment:
- TZ=America/New_York
- HOSTNAME=nginx
volumes:
- "$HOME/.local/share/srv/docker/casjaysdevdocker-nginx/volumes/data:/data:z"
- "$HOME/.local/share/srv/docker/casjaysdevdocker-nginx/volumes/config:/config:z"
ports:
- 80:80
restart: always
Get source files
dockermgr download src casjaysdevdocker/nginx
OR
git clone "https://github.com/casjaysdevdocker/nginx" "$HOME/Projects/github/casjaysdevdocker/nginx"
Build container
cd "$HOME/Projects/github/casjaysdevdocker/nginx"
buildx
Authors
Description
Languages
Shell
92.4%
Dockerfile
7.6%