Created
October 27, 2023 02:32
-
-
Save dangreene0/7446875ba43ae9103cd21cef4d760c8d to your computer and use it in GitHub Desktop.
docker compose for basic nginx file server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this will make any files and directories in a folder called
archive
show up in a listing.