forked from xdocker/xgeoserver

Tim Sutton
2014-06-29 f84d63a7ab1db5e40e3e899a234fadc0559d4560
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
How I set up tile stream in docker:
===================================
 
Starting the committed instance::
 
    sudo docker run -d \
        -name="tilemill" \
        -p 2222:22 \
        -v /home/gisdata:/home/gisdata \
        -v /home/timlinux/Documents/MapBox:/Documents/MapBox \
        kartoza/tilemill \
        supervisord -n
 
Under this scenario, we share our gisdata directory from /home/gisdata to
a similarly named directory in the docker container. We also share our
MapBox directory to /Documents/MapBox which is where the docker installed
tilemill will look for and store its docs.
 
If you are using a linked container for postgis you might want to add the -link
option like this::
 
    sudo docker run -d \
        -name="tilemill" \
        -p 2222:22 \
        -link postgis:pg \
        -v /home/gisdata:/home/gisdata \
        -v /home/timlinux/Documents/MapBox:/Documents/MapBox \
        kartoza/tilemill \
        supervisord -n
 
With the ``-link`` option in place you can refer to the postgis database
host and port using these environment variables in your tilemill vm::
 
 
 
Connecting to the running instance with ssh port forwarding::
 
ssh localhost -p2222 -l root -L 20009:localhost:20009 -L 20008:localhost:20008
 
 
Now open your browser at: http://localhost:20009
 
Killing the running instance::
 
    sudo docker kill tilemill
    sudo docker rm tilemill