nginx-file-explorer

docker build Docker Image Version (latest semver) Docker Image Size (tag) Docker Pulls

Start the server

docker-compose up -d

check your local ip

# for linux
ip a

# for macOS
ipconfig getifaddr en0

build docker image:

docker build -t shubhamtatvamasi/nginx-file-explorer .

start the container:

docker run --name nginx -d -p 80:80 --restart unless-stopped -v ${PWD}:/home/:ro shubhamtatvamasi/nginx-file-explorer

start docker container in some other folder

docker run --name nginx -d -p 80:80 -v ${PWD}:/home/:ro \
-v /Users/shubhamtatvamasi/myFiles/git/nginx-file-explorer/nginx.conf:/etc/nginx/conf.d/default.conf:ro \
nginx:alpine

Linux process

docker run --name nginx -d -p 80:80 -v ${PWD}:/home/:ro \
  -v /home/shubham/git/nginx-file-explorer/nginx.conf:/etc/nginx/conf.d/default.conf:ro \
  nginx:alpine

remove the docker container

docker rm -f nginx