From 4da4e23719810f5f5519c1441e3cc8f09d4244fd Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sat, 16 Dec 2017 20:53:00 +0100 Subject: [PATCH] Forward Ckan and OpenMapKit HTTP ports to Docker host's localhost --- ckan/lib/systemd/system/ckan.service | 2 +- openmapkit/lib/systemd/system/openmapkit.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ckan/lib/systemd/system/ckan.service b/ckan/lib/systemd/system/ckan.service index 093b1e4..35a1b3d 100644 --- a/ckan/lib/systemd/system/ckan.service +++ b/ckan/lib/systemd/system/ckan.service @@ -4,7 +4,7 @@ After=network.target [Service] 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 [Install] diff --git a/openmapkit/lib/systemd/system/openmapkit.service b/openmapkit/lib/systemd/system/openmapkit.service index d548903..9c10491 100644 --- a/openmapkit/lib/systemd/system/openmapkit.service +++ b/openmapkit/lib/systemd/system/openmapkit.service @@ -4,7 +4,7 @@ After=network.target [Service] 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 [Install]