Customization
Frequent customization options for the Tiler application may include changing the volume configuration and port settings.
Volume Configuration
To change the volume configuration, you can modify the docker-compose.yml file. The default configuration mounts the data/ directory from your host machine into the container. You can change this within the docker-compose.yml file under the volumes section of the service definition.
For example, additionally mounting a tif directory can be done as follows:
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8001:8000"
volumes:
- ./data:/app/data
- ./tif:/app/tifRebuild the container:
docker-compose up -d --buildNow, tiles can be accessed from GeoTIFF files placed in the tif directory.
curl -X GET "http://localhost:8001/tif/your-file.tif"Port Configuration
By default, the application is accessible on port 8001. If the port is already in use or you want to change it, you can modify the ports section in the docker-compose.yml file.
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8005:8000"
volumes:
- ./data:/app/dataMake sure to rebuild the container.