Deploying DPE Admin as docker container
Load Image
Use the file dpe-admin.tar.gzip from the delivery folder to load the image
docker load < dpe-admin.tar.gzip
Prepare settings.json
Copy the file settings.json from the delivery sub folder webapp to a location where it can be used from docker, e.g. /etc/admin/
Adapt settings.json to connect to your DPE Services, see Prepare settings.json
Create Container
docker run -p 80:80 --name admin --mount type=bind,source=/etc/admin/settings.json,target=/usr/share/nginx/html/settings.json dpe-admin:latest
Option -p <externalPort>:80 specifies which external port to use, the container internal port is always 80
Option --mount injects/maps the settings.json file from the host location to the inside of container
Docker Compose
Alternatively you can also use a docker compose file
compose.yaml
version: '3.7'
services:
dpe_admin:
container_name: admin
image: docker-registry.davidsystems.com/dpe-admin:latest
restart: always
ports:
- 80:80
volumes:
- /etc/admin/settings.json:/usr/share/nginx/html/settings.json
HTTPS
The DPE Admin container is supporting HTTP.
Typically, in enterprise environments a HTTPS-offloading proxy is used to route the HTTPS traffic from the outside to an internal docker container.