This page does not refer to the most recent version of the SCM-Manager. Go to the latest version of this page.
Docker
Install scm-manager with docker
Quickstart
Grab the latest version from download page and replace <version> in the code blocks below
docker run --name scm -p 8080:8080 -v scm-home:/var/lib/scm sdorra/scm-manager:<version>for example:
docker run --name scm -p 8080:8080 -v scm-home:/var/lib/scm sdorra/scm-manager:1.60Persistence
It is recommended to create a persistent volume for the scm-manager home directory.
This allows scm-manager updates and recreation of the container without lose of data.
The home directory is located at /var/lib/scm.
It is recommended to use a volume managed by docker.
If it is required to use a host directory, keep in mind that the scm-manager process is executed with a user which has the id 1000.
So ensure that the user with the uid 1000 can write to the directory e.g.:
mkdir /scm_home
chown 1000:1000 /scm_home
docker run --name scm -p 8080:8080 -v /scm_home:/var/lib/scm sdorra/scm-manager:<version>Docker Compose
If you want to use the image with docker-compose have a look at the example below.
version: '2.0'
services:
scm:
image: sdorra/scm-manager:<version>
ports:
- "8080:8080"
volumes:
- scmhome:/var/lib/scm
volumes:
scmhome: {}