Expose sql api and tile webservice.

This commit is contained in:
Stefan Verhoeven 2015-02-13 14:50:03 +01:00
parent 05580dd121
commit 5210a06218
4 changed files with 5 additions and 4 deletions

View File

@ -101,7 +101,8 @@ RUN service postgresql start && service redis-server start && \
bash -l -c "cd /cartodb && bash script/create_dev_user" && \
service postgresql stop && service redis-server stop
EXPOSE 3000
EXPOSE 3000 8080 8181
ADD ./startup.sh /opt/startup.sh

View File

@ -21,7 +21,7 @@ How to run the container:
--------------
```
docker run -t -i fleu42/docker-cartodb -p 3000:3000 /bin/bash
docker run -t -i -p 3000:3000 -p 8080:8080 -p 8181:8181 fleu42/docker-cartodb
```
You might need to add dev.cartodb.localhost to your hosts file.

View File

@ -11,7 +11,7 @@ module.exports.log_filename = 'logs/cartodb-sql-api.log';
// from hostname. Must have a single grabbing block.
module.exports.user_from_host = '^([^\\.]+)\\.';
module.exports.node_port = 8080;
module.exports.node_host = '127.0.0.1';
module.exports.node_host = '0.0.0.0';
// idle socket timeout, in miliseconds
module.exports.node_socket_timeout = 600000;
module.exports.environment = 'development';

View File

@ -1,7 +1,7 @@
var config = {
environment: 'development'
,port: 8181
,host: '127.0.0.1'
,host: '0.0.0.0'
,uv_threadpool_size: undefined
// Regular expression pattern to extract username
// from hostname. Must have a single grabbing block.