2014-11-14 17:59:55 +08:00
docker-cartodb
==============
2016-08-02 18:00:15 +08:00
[![ ](https://images.microbadger.com/badges/image/sverhoeven/cartodb.svg )](https://microbadger.com/#/images/sverhoeven/cartodb "Get your own image badge on microbadger.com")
[![ ](https://images.microbadger.com/badges/version/sverhoeven/cartodb.svg )](https://hub.docker.com/r/sverhoeven/cartodb/)
2016-03-26 04:22:02 +08:00
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
2017-04-04 04:46:52 +08:00
docker build -t=sverhoeven/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
```
2017-04-04 04:46:52 +08:00
docker run -d -p 80:80 sverhoeven/cartodb
2014-11-15 23:32:19 +08:00
```
2017-04-05 04:10:24 +08:00
The CartoDB instance has been configured with the hostname `cartodb.localhost` , this means the web browser and web server need to be able to resolve `cartodb.localhost` to an IP adress of the machine where the web server is running.
2016-09-27 23:49:53 +08:00
This can be done by adding cartodb.localhost alias to your hosts file. For example
2015-07-08 22:48:20 +08:00
```
sudo sh -c 'echo 127.0.1.1 cartodb.localhost >> /etc/hosts'
```
2016-09-29 21:59:15 +08:00
(For Windows it will be `C:\Windows\System32\drivers\etc\hosts` )
2017-04-07 02:02:07 +08:00
How to use a different hostname:
--------------------------------
For example to use `cartodb.example.com` as a hostname start with:
```
docker run -d -p 80:80 -e CARTO_HOST=cartodb.example.com sverhoeven/cartodb
```
The chosen hostname should also resolve to an IP adress of the machine where the web server is running.