zvikara / docker-cartodb

Dockerized CartoDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-cartodb

This docker container provides a fully working cartodb development solution without the installation hassle.

Just run the commands and then connect to http://dev.cartodb.localhost:3000/login with your browser.

The default login is dev/pass1234. You may want to change it when you'll run making it available from the outside world.

It also creates an 'example' organization with owner login admin4example/pass1234. Organization members can be created on http://example.cartodb.localhost:3000/u/admin4example/organization

How to build the container:

git clone https://github.com/geoplex/docker-cartodb
docker build -t="geoplex/docker-cartodb" docker-cartodb/

How to run the container:

docker run -t -i -p 3000:3000 -p 8080:8080 -p 8181:8181 -v /home/develop/local-cartodb-data:/var/lib/postgresql/9.3/main geoplex/docker-cartodb

Config changes:

  1. On your host system you need to add config/cartodb.nginx.proxy.conf, found in this repository to /etc/nginx/conf.d/. This will setup a reverse proxy for the CartoDB/imports (3000), SQL Api (8080) and Map api (8181).
  2. You need to add cartodb.localhost, dev.cartodb.localhost and example.cartodb.localhost to your /etc/hosts file.
  3. if you copy the content of /var/lib/postgresql/9.3/main to a local folder, which you mount while executing docker run you will get persistent data

Visit http://dev.cartodb.localhost or http://example.cartodb.localhost

Any organization member you create should also be added to your hosts file.

About

Dockerized CartoDB

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 73.7%Language:Shell 26.3%