# Use more than one pbf file when creating a docker openroute service image

**URL:** https://ask.openrouteservice.org/t/use-more-than-one-pbf-file-when-creating-a-docker-openroute-service-image/4487
**Category:** openrouteservice
**Created:** [January 19, 2023, 11:37pm UTC](https://ask.openrouteservice.org/t/use-more-than-one-pbf-file-when-creating-a-docker-openroute-service-image/4487 "2023-01-19T23:37:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![MatsGej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/matsgej/32/1947_2.png) [@MatsGej](https://ask.openrouteservice.org/u/MatsGej)
#### Post date: [January 19, 2023, 11:37pm UTC](https://ask.openrouteservice.org/t/use-more-than-one-pbf-file-when-creating-a-docker-openroute-service-image/4487/1 "2023-01-19T23:37:08Z")

</div>

I have been trying to use more than one pbf file when creating the docker image for openrouteservice. But I cannot get both to work in one docker compose up command.  
In the docker\_compose file I have these setting  
volumes:  
- ./graphs:/ors-core/data/graphs  
- ./elevation\_cache:/ors-core/data/elevation\_cache  
- ./logs/ors:/var/log/ors  
- ./logs/tomcat:/usr/local/tomcat/logs  
- ./conf:/ors-conf  
- ./kosovo-latest.osm.pbf:/ors-core/data/osm\_file.pbf  
- ./sweden-latest.osm.pbf:/ors-core/data/osm\_file.pbf

But it only uses the first pbf file. So I guessed that I could use the  
environment:  
- BUILD\_GRAPHS=True  
to add one pbf file at the time, but that did not work either… I assume I am doing something wrong, but have not be able to find it yet.

Can you please help me.?

---

<div class="post-metadata">

### Author: ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)
#### Post date: [January 20, 2023, 9:02am UTC](https://ask.openrouteservice.org/t/use-more-than-one-pbf-file-when-creating-a-docker-openroute-service-image/4487/2 "2023-01-20T09:02:15Z")

</div>

Hey,

currently, it is not possible to use the openrouteservice with more than one source file at the same time.  
Is there documentation that suggests that you can use multiple source files at the same time? If so, could you point to it so we can correct it?

Best regards

---

<div class="post-metadata">

### Author: ![MatsGej](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/matsgej/32/1947_2.png) [@MatsGej](https://ask.openrouteservice.org/u/MatsGej)
#### Post date: [January 20, 2023, 2:28pm UTC](https://ask.openrouteservice.org/t/use-more-than-one-pbf-file-when-creating-a-docker-openroute-service-image/4487/3 "2023-01-20T14:28:22Z")

</div>

Is there is a reason for just allowing one pbf file?

---

<div class="post-metadata">

### Author: ![amandus](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/amandus/32/669_2.png) [@amandus](https://ask.openrouteservice.org/u/amandus)
#### Post date: [January 23, 2023, 9:43am UTC](https://ask.openrouteservice.org/t/use-more-than-one-pbf-file-when-creating-a-docker-openroute-service-image/4487/4 "2023-01-23T09:43:54Z")

</div>

Hi @MatsGej,

no particular reason, it’s just the way it was done before.  
You could [implement this feature and create a Pull Request](https://github.com/GIScience/openrouteservice/#contribute).

Best regards

---

<div class="post-metadata">

### Author: ![jschnell](https://ask.openrouteservice.org/user_avatar/ask.openrouteservice.org/jschnell/32/971_2.png) [@jschnell](https://ask.openrouteservice.org/u/jschnell)
#### Post date: [January 23, 2023, 11:16am UTC](https://ask.openrouteservice.org/t/use-more-than-one-pbf-file-when-creating-a-docker-openroute-service-image/4487/5 "2023-01-23T11:16:43Z")

</div>

Hey,

I assume the reason for this is that things become rather complicated as soon as you have meeting or overlapping pbf files.  
For one, graph building would probably require an extra step to match existing features, and there would have to be a strategy on what to do with conflicting values.

There is already tooling out there that allows for [merging pbf files](https://gis.stackexchange.com/questions/242704/merging-osm-pbf-files). The openrouteservice will work with such a merged pbf file.

Best regards
