2014-11-14 17:59:55 +08:00
|
|
|
docker-cartodb
|
|
|
|
==============
|
|
|
|
|
2015-07-24 18:24:28 +08:00
|
|
|
This docker container provides a fully working cartodb development solution
|
2014-11-15 23:32:19 +08:00
|
|
|
without the installation hassle.
|
|
|
|
|
2015-07-24 18:24:28 +08:00
|
|
|
Just run the commands and then connect to http://cartodb.localhost with your you browser.
|
2014-11-15 23:32:19 +08:00
|
|
|
|
2015-07-08 22:48:20 +08:00
|
|
|
The default login is dev/pass1234. You may want to change it when you'll run
|
2014-11-15 23:32:19 +08:00
|
|
|
it for the outside.
|
|
|
|
|
2015-07-08 22:48:20 +08:00
|
|
|
It also creates an 'example' organization with owner login admin4example/pass1234.
|
|
|
|
Organization members can be created on http://cartodb.localhost/user/admin4example/organization
|
2015-02-18 16:51:25 +08:00
|
|
|
|
2014-11-15 23:32:19 +08:00
|
|
|
How to build the container:
|
2015-07-08 22:48:20 +08:00
|
|
|
---------------------------
|
2014-11-15 23:32:19 +08:00
|
|
|
|
|
|
|
```
|
2015-07-24 18:24:28 +08:00
|
|
|
git clone https://github.com/sverhoeven/docker-cartodb.git
|
|
|
|
docker build -t="sverhoeven/docker-cartodb" docker-cartodb/
|
2014-11-15 23:32:19 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
How to run the container:
|
2015-07-08 22:48:20 +08:00
|
|
|
-------------------------
|
2014-11-15 23:32:19 +08:00
|
|
|
|
|
|
|
```
|
2015-07-24 18:24:28 +08:00
|
|
|
docker run -d -p 3000:3000 -p 8080:8080 -p 8181:8181 sverhoeven/docker-cartodb
|
2014-11-15 23:32:19 +08:00
|
|
|
```
|
|
|
|
|
2015-07-08 22:48:20 +08:00
|
|
|
You need to add `config/cartodb.nginx.proxy.conf` to /etc/nginx/conf.d/.
|
2015-05-16 19:01:49 +08:00
|
|
|
This will setup a reverse proxy for the CartoDB/imports (3000), SQL Api (8080) and Map api (8181).
|
|
|
|
|
2015-07-08 22:48:20 +08:00
|
|
|
You also need to add cartodb.localhost alias to your hosts file. For example
|
|
|
|
```
|
|
|
|
sudo sh -c 'echo 127.0.1.1 cartodb.localhost >> /etc/hosts'
|
|
|
|
```
|