Using Docker
A public Docker image is provided on dockerhub containing SKGM and its prerequisites at meseta/skgm. allowing rapid deployment of SKGM.
Starting From Docker
Use one of the following commands to launch an instance of SKGM directly on docker.
// Run in the foreground. ctr+c to quit
docker run -p 5000:5000 -it meseta/skgm:v1.0.1
// Run detached (in the background. Do a "docker stop skgm" to stop it
docker run -p 5000:5000 -d --name skgm meseta/skgm:v1.0.1
// Example for adding more ports and customizing via environmental variables
docker run -p 5000:5000 -p 5001:5001 -e SKGM_PASSWORD=123456 -d --name skgm meseta/skgm:v1.0.1
Once the docker container has started up, you can access it at http://localhost:5000
. Note: the above command only exposes the default
SKGM management port, other ports may need to be added. A newer version may also be available than the tag mentioned in the examples, please
check DockerHub.
Docker Compose
Docker-compose can be used to create a more perisstent service. Here is an example of a docker-compose yaml file
services:
my-skgm:
image: meseta/skgm:v1.0.1
restart: always
environment:
SKGM_WEBSITE_NAME: "My SKGM Installation"
SKGM_PASSWORD: "123456"
ports:
- "5000:5000"
- "5001:5001"
volumes:
- skgm-data:/home/skgm/.config/skgm
volumes:
skgm-data:
This docker-compose file sets up some environmental variables to customize the SKGM installation, exposes some ports, and
mounts a persistent volume so that settings and deployments are persisted across restarts. Once the docker container has started up, you can access it at http://localhost:5000
Note: A newer version may also be available than the tag mentioned in the examples, please check DockerHub.