- Docker Engine (see instructions)
- docker-compose.
Edit ../api_values.php
and ../config.php
as per mpgram-web's README, then:
cp .env.example .env
See if you need to edit the ports, IP etc.
You are all set!
docker-compose up --build -d
Your mpgram will await you on http://127.0.0.1.
- Place your SSL chain certificate (named
fullchain.pem
) and private key (namedprivkey.pem
) intonginx/ssl
- Set
PROTO=https
in.env
If you want to create a self-signed certificate instead of obtaining one from a CA, run:
openssl req -x509 -nodes -days 365 -subj "/C=CA/ST=QC/O=Company, Inc./CN=mydomain.com" -addext "subjectAltName=DNS:mydomain.com" -newkey rsa:2048 -keyout nginx/ssl/privkey.pem -out nginx/ssl/fullchain.pem
Add a -sha1
option if you are targeting a retro platform like Symbian S60. Warning: SHA1 is insecure!.
Run with docker-compose
as per above.
Happy mpgram'ming!