Skip to content

Instantly share code, notes, and snippets.

@dangreene0
Created October 27, 2023 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangreene0/7446875ba43ae9103cd21cef4d760c8d to your computer and use it in GitHub Desktop.
Save dangreene0/7446875ba43ae9103cd21cef4d760c8d to your computer and use it in GitHub Desktop.
docker compose for basic nginx file server
---
version: '3'
services:
nginx-autoindex:
container_name: nginx-autoindex
image: dceoy/nginx-autoindex:latest
ports:
- 80:80
volumes:
- ./archives:/var/lib/nginx/html:ro
entrypoint:
- /usr/sbin/nginx
command:
- -g
- daemon off;
@dangreene0
Copy link
Author

this will make any files and directories in a folder called archive show up in a listing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment