t-rex-tileserver / t-rex

t-rex is a vector tile server specialized on publishing MVT tiles from your own data
https://t-rex.tileserver.ch/
MIT License
556 stars 69 forks source link

Error reading configuration - Could not find config file! #268

Open musicformellons opened 2 years ago

musicformellons commented 2 years ago

I'm trying to have a docker container on Mac by following along the docs:

docker pull sourcepole/t-rex:0.14.1
docker run sourcepole/t-rex:0.14.1 --version
docker run -p 6767:6767 sourcepole/t-rex:0.14.1 serve --bind=0.0.0.0 --openbrowser=false --config=myconfig.toml

But keep getting Error reading configuration - Could not find config file!

I also tried copying my config file into the container but error remains. What am I doing wrong?

pka commented 2 years ago

The container workdir is /var/data/in. So you pass your config usually by adding a volume with e.g. -v $PWD:/var/data/in:ro. See also the examples in the Docker section of https://t-rex.tileserver.ch/doc/setup/