Skip to content

andrekosak/docker-sn-midserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License MIT

What is ServiceNow Mid Sever

Read here

Why do you need it? Just ignore this repo if you don't know the answer.

TL;DR;

  • London: andrekosak/sn-midserver:london
  • Kingston: andrekosak/sn-midserver:kingston
  • Kingston for armhf (Raspberry Pi): andrekosak/sn-midserver:kingston-armhf
  • Jakarta: andrekosak/sn-midserver:jakarta

Get started right away

$ docker run -d --name sn-mid-server \
  -e 'SN_URL=https://dev00000.service-now.com' \
  -e 'SN_USER=username' \
  -e 'SN_PASSWD=userpassword' \
  -e 'SN_MID_NAME=sn-mid-server' \
  andrekosak/sn-midserver:kingston

or using Docker Compose:

version: '3'
services:
  midserver:
    container_name: sn-midserver
    image: andrekosak/sn-midserver:kingston
    network_mode: host
    environment:
      - SN_URL=https://dev00000.service-now.com
      - SN_USER=username
      - SN_PASSWD=password
      - SN_MID_NAME=my-mid-server

Persisting logs

$ docker run -d --name sn-mid-server \
  -e 'SN_URL=https://dev00000.service-now.com' \
  -e 'SN_USER=username' \
  -e 'SN_PASSWD=password' \
  -e 'SN_MID_NAME=my-mid-server' \
  -v './sn-midserver/logs:/opt/agent/logs' \
  andrekosak/sn-midserver:kingston

or using Docker Compose:

version: '3'
services:
  midserver:
    container_name: sn-midserver
    image: andrekosak/sn-midserver:kingston
    volumes:
      - ./sn-midserver/logs:/opt/agent/logs
    network_mode: host
    environment:
      - SN_URL=https://dev00000.service-now.com
      - SN_USER=username
      - SN_PASSWD=password
      - SN_MID_NAME=my-mid-server