Deployment

From MemCP
Jump to navigation Jump to search

MemCP is relatively easy to deploy. It only requires minimal system requirements (some 10-20 Megabytes of RAM for the base system). There are two deployment methods:

Deployment via pm2 (preferred)

To run memcp, just follow these commands:

git clone https://github.com/launix-de/memcp
cd memcp
go get
make # make sure, go is installed
pm2 start ./memcp -data ./data/ # use a different path than ./data if you wish; install pm2

If you want to update memcp, just run:

git pull
make
pm2 restart [processid]

If you want a minimal installation without source code, just copy the executable memcpas well as the libfolder as well as assets.

Deployment via Docker

Docker needs a lot more RAM and disk space since every docker container installs its own linux distribution.

To build docker just run

git clone https://github.com/launix-de/memcp
cd memcp
docker buildx .

Docker offers a volume /data where all data is stored and exposes port 4332 (HTTP and REST APIs) and port 3307 (mysql)