Docker
Starting with Directory Lister v5.0 an official Docker image is provided (phlak/directory-lister
).
Running with docker run
docker run
Replace <host_path>
with the path to the directory you'd like to list.
Replace <host_port>
with the port you would like to expose the application on.
You may pass one or more environment variables with multiple --env
flags.
See the Configuration Reference for a full list of the available environment variables.
Running with docker compose
docker compose
The following is an example docker-compose.yaml
file. For more information on docker compose
and how to use this file see the Docker Compose documentation.
Replace <version>
with the version of Directory Lister you'd like to use (e.g. 5.0.4
, 5.0
or 5
)
Replace <host_path>
with the path to the directory you'd like to list.
Replace <host_port>
with the port you would like to expose the application on.
See the Configuration Reference for a full list of the available environment variables.
Advanced docker compose
usage
docker compose
usage The following is an example docker-compose.yaml
file showing Directory Lister being run with a redis container for caching.
Replace <version>
with the version of Directory Lister you'd like to use (e.g. 5.0.4
, 5.0
or 5
)
Replace <host_path>
with the path to the directory you'd like to list.
Replace <host_port>
with the port you would like to expose the application on.
Last updated
Was this helpful?