# Unable to run private Docker instance

**URL:** <https://ask.openrouteservice.org/t/unable-to-run-private-docker-instance/1091>\
**Category:** openrouteservice\
**Created:** [November 13, 2019, 9:07pm UTC](https://ask.openrouteservice.org/t/unable-to-run-private-docker-instance/1091 "2019-11-13T21:07:40Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![clarknova](https://ask.openrouteservice.org/letter_avatar_proxy/v4/letter/c/2acd7d/32.png) [@clarknova](https://ask.openrouteservice.org/u/clarknova)\
**Post date:** [November 14, 2019, 1:15pm UTC](https://ask.openrouteservice.org/t/unable-to-run-private-docker-instance/1091/3 "2019-11-14T13:15:49Z")

</div>

Hello, its actually a bug in regard how openrouteservice is setup.  
The environment variables in the docker-compose.yml are never used by tomcat because this part in the docker file sets them to empty string.

```
RUN echo "CATALINA_OPTS=\"$CATALINA_OPTS\"" >> /usr/local/tomcat/bin/setenv.sh
RUN echo "JAVA_OPTS=\"$JAVA_OPTS\"" >> /usr/local/tomcat/bin/setenv.sh

```

Its actually quite hard to debug because the content of setenv seems to be specific to tomcat only. So when you look inside the container the global environment variables seem fine, but are overridden by the content of setenv.

On top of that. Starting with empty java\_opts makes the process just take 1/4 of the available ram.  
So this poor soul is using a machine with over 120 gb of ram just to run North America because eventually 1/4 of ram was enough:

> [@Source point(s) \[0, 1, 2, 3, 4, ..., n\] out of bounds](https://ask.openrouteservice.org/t/source-point-s-0-1-2-3-4-n-out-of-bounds/581):
>
> Hello. I’m fairly new on this subject. I’m having an issue with the /ors/matrix API endpoint of a deployed instance of openrouteservice (an AWS server deployed using docker). I’ve downloaded the data I needed (USA data) from [here](https://download.geofabrik.de/north-america-latest.osm.pbf). I made the corresponding changes to the docker-compose.yml (OSM\_FILE: ./docker/data/north-america-latest.osm.pbf). I removed the graphs folder as suggested [here](https://ask.openrouteservice.org/t/point-0-is-out-of-bounds/113), but I’m getting the following error: API error response: b’{“error”:{“code”:6010,“message”:“Source poin…

So my quick fix was just commenting those two lines out. This obviously breaks building the image directly. I can do a pull-request with an more elegant fix next week, but should be easy enough to fix regardless.

---

_[View the full topic](https://ask.openrouteservice.org/t/unable-to-run-private-docker-instance/1091)._
