learn-nginx-auth/justfile
2025-11-21 13:09:03 -06:00

20 lines
360 B
Makefile

start-auth:
./main_auth.py &
stop-auth:
pkill -f main_auth.py || true
start-nginx:
docker run \
--rm \
--name nginx \
--network host \
-v "$PWD/site":/usr/share/nginx/html:ro \
-v "$PWD/nginx.conf":/etc/nginx/nginx.conf:ro \
docker.io/library/nginx
logs-nginx:
docker logs -f nginx
stop-nginx:
docker stop nginx