Difference between revisions of "ProxCP Daemon w/ Docker"

From ProxCP Documentation
(Created page with "coming soon")
 
Line 1: Line 1:
coming soon
+
ProxCP Daemon v1.5 or higher now supports [https://www.docker.com/ Docker]. Docker allows ProxCP Daemon to run in its own container independent of other software. This makes management and updating very simple.
 +
 
 +
== Steps ==
 +
 
 +
# Install docker engine on the host server ([https://docs.docker.com/engine/install/ how?])
 +
# Once completed, pull the ProxCP Daemon image with <code>docker pull proxcp/proxcp-daemon-v15-nodev12</code>
 +
# Confirm you see the new image with <code>docker images</code>
 +
# Start a new docker container from the ProxCP Daemon image <code>docker run --name daemon -p 80:80 -p 8000:8000 -d proxcp/proxcp-daemon-v15-nodev12</code>
 +
# You should now see a running container <code>docker ps</code>
 +
# Enter the container <code>docker exec -it daemon /bin/bash</code>
 +
# You are now dropped into the container as root in /etc/proxcp. From here, run <code>./proxcp-daemon</code> to complete initial ProxCP Daemon configuration
 +
# After setup, kill the Daemon with ^C (Ctrl-C) and make it persistent with <code>forever start -a -l forever.log -e err.log -c /bin/bash RUN.sh</code>

Revision as of 18:25, 24 July 2020

ProxCP Daemon v1.5 or higher now supports Docker. Docker allows ProxCP Daemon to run in its own container independent of other software. This makes management and updating very simple.

Steps

  1. Install docker engine on the host server (how?)
  2. Once completed, pull the ProxCP Daemon image with docker pull proxcp/proxcp-daemon-v15-nodev12
  3. Confirm you see the new image with docker images
  4. Start a new docker container from the ProxCP Daemon image docker run --name daemon -p 80:80 -p 8000:8000 -d proxcp/proxcp-daemon-v15-nodev12
  5. You should now see a running container docker ps
  6. Enter the container docker exec -it daemon /bin/bash
  7. You are now dropped into the container as root in /etc/proxcp. From here, run ./proxcp-daemon to complete initial ProxCP Daemon configuration
  8. After setup, kill the Daemon with ^C (Ctrl-C) and make it persistent with forever start -a -l forever.log -e err.log -c /bin/bash RUN.sh