Forward Ckan and OpenMapKit HTTP ports to Docker host's localhost

This commit is contained in:
Disassembler 2017-12-16 20:53:00 +01:00
parent fa13411d57
commit 4da4e23719
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/docker run --rm --name ckan --link=postgres --link=redis --link=solr -v /srv/ckan/conf:/etc/ckan -v /srv/ckan/data:/srv/ckan/storage ckan ExecStart=/usr/bin/docker run --rm --name ckan --link=postgres --link=redis --link=solr -p 127.0.0.1:9003:8003 -v /srv/ckan/conf:/etc/ckan -v /srv/ckan/data:/srv/ckan/storage ckan
ExecStop=/usr/bin/docker stop ckan ExecStop=/usr/bin/docker stop ckan
[Install] [Install]

View File

@ -4,7 +4,7 @@ After=network.target
[Service] [Service]
Type=simple Type=simple
ExecStart=/usr/bin/docker run --rm --name openmapkit -v /srv/openmapkit/settings.js:/srv/openmapkit/settings.js -v /srv/openmapkit/data:/srv/openmapkit/data openmapkit ExecStart=/usr/bin/docker run --rm --name openmapkit -p 127.0.0.1:9007:8007 -v /srv/openmapkit/settings.js:/srv/openmapkit/settings.js -v /srv/openmapkit/data:/srv/openmapkit/data openmapkit
ExecStop=/usr/bin/docker kill openmapkit ExecStop=/usr/bin/docker kill openmapkit
[Install] [Install]