Skip to content

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:

yaml
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - "8001:8000"
    volumes:
      - ./data:/app/data
      - ./tif:/app/tif

Rebuild the container:

bash
docker-compose up -d --build

Now, tiles can be accessed from GeoTIFF files placed in the tif directory.

bash
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.

yaml
services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:  
      - "8005:8000"

    volumes:
      - ./data:/app/data

Make sure to rebuild the container.

Licensed under the BSD 3-Clause License.