_ _ _ ____ _ _____
| \ | | ___ __| | ___| _ \| |/ /_ _|
| \| |/ _ \ / _` |/ _ \ |_) | ' / | |
| |\ | (_) | (_| | __/ __/| . \ | |
|_| \_|\___/ \__,_|\___|_| |_|\_\___|
By ADITO Software GmbH
This Docker container contains the following components:
- The example setup from the
docker-compose.yml
file does also use a Traefik load balancing service. Remove this service (traefik
) and publish the ports8080:8080
,2560:2560
and5000:5000
if you would like to accessnodepki
directly. - Traefik only serves
http
to ease the setup process. Switch tohttps
for productive usage! - The
docker-compose.yml
file works with variable substitution. It's therefore required to start this setup by using Docker Compose. If thedocker-compose.yml
file is used for Docker Swarm Stacks, replace the variables (e.g.${CA_API_SERVER_URL}
) with real values. - Set
CA_API_SERVER_PLAIN_PORT
to80
andCA_API_SERVER_TLS_ENABLED
tofalse
if you are running nodepki behind a reverse proxy which handles the SSL/TLS termination.
Required files and directories (change the base path /opt/data
according to your setup):
cd production/
cp .env.tmpl .env
sudo mkdir -p /opt/data/nodepki
sudo mkdir -p /opt/data/nodepki-client
sudo mkdir -p /opt/data/nodepki-webclient
sudo mkdir -p /opt/data/nodepki-certs
Now you need to set/change the app variables inside .env
.
Required host files entries for local development setups:
127.0.0.1 admin-ca.example.com ca.example.com ocsp.example.com
Notice: Adjust your /etc/hosts
entries according to your values inside .env
.
docker-compose up
docker-compose down
rm -rf /opt/data/nodepki*/*