Install MapContrib with the Docker image

Guillaume AMAT edited this page Apr 6, 2017 · 5 revisions

To install MapContrib from the official Docker image, run those commands:

$ docker pull mapcontrib/mapcontrib

OpenStreetMap tokens

The user authentification is based on the OSM OAuth service. So you have to register a new app on osm.org. When done, you will have two tokens to put in a new config/local.yml file.

Your config/local.yml file have to look like that:

client:
    oauthConsumerKey: OAUTH_KEY_FROM_OSM
    oauthSecret: OAUTH_SECRET_FROM_OSM

Launch the server

$ docker run -d -p "8080:8080" -v `pwd`/config/local.yml:/mapcontrib/config/local.yml mapcontrib/mapcontrib

Sample docker-compose.yml

mapcontrib:
    image: mapcontrib/mapcontrib:latest
    restart: always
    volumes:
        - ./volumes/config/local.yml:/mapcontrib/config/local.yml
        - ./volumes/files:/mapcontrib/public/files
        - ./volumes/mongo:/var/lib/mongodb
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.