Simple web directory listing compose example.
Educational example only. Review every volume path, port, and credential before you run this. Do not copy production secrets into your wiki or git repo.
_shared/.env for non-secrets, _shared/.secret for credentialsmkdir -p /path/to/docker/stacks/directorylister
cd /path/to/docker/stacks/directorylister
# paste compose.yaml below, then:
docker compose pull
docker compose up -d
---
services:
directory-lister:
image: directorylister/directorylister:latest
container_name: directorylister
hostname: directorylister
env_file:
- /path/to/docker/stacks/_shared/.env
- /path/to/docker/stacks/_shared/.secret
environment:
- APP_LANGUAGE=en
- DISPLAY_READMES=true
- READMES_FIRST=true
- ZIP_DOWNLOADS=true
- SORT_ORDER=type
- REVERSE_SORT=false
- SITE_TITLE=share
- EXCLUDE_FILES=@eaDir
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE:-10} # Max number of log files
max-size: ${DOCKERLOGGING_MAXSIZE:-200k} # Max file size
# Refer to Directory Lister's configuration documentation for more environment variables.
ports:
- 30005:80 # Replace <host_port> with the port you want to expose Directory Lister on your host
volumes:
- /etc/localtime:/etc/localtime:ro
#- /path/to/docker_syno/sftpgo/data/data/anonymous/:/data # Replace <host_path> with the path to the directory you want to list on your host
- /path/to/software/DirectoryLister:/data
restart: unless-stopped
_shared/.secret.