Skip to content

uZer/docker-ninjamserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alpine NINJAM Server container

GitHub commits since tagged version

Docker Image Version (tag latest semver) Docker Image Size (tag) Docker Pulls

Small alpine container for Ninjam server.

Project URLs: Official Website | Dockerhub | Github (Dockerfiles + Samples)

Usage

  1. Clone the repository

  2. Edit the example configuration file according to your needs. Please change the admin password myadminpass to something else!

  3. Run:

    $ docker-compose up
    

    Container port will get exposed on your host.

Kubernetes example

---
apiVersion: v1
kind: Service
metadata:
  name: ninjam
  labels:
    app: ninjam
spec:
  selector:
    app: ninjam
  ports:
    - name: ninjam
      port: 2049
      targetPort: ninjam
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ninjam
  labels:
    app: ninjam
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ninjam
  template:
    metadata:
      labels:
        app: ninjam
    spec:
      containers:
        - name: ninjam
          image: uzer/ninjamserver:latest
          imagePullPolicy: Always
          ports:
          - containerPort: 2049
            name: ninjam
          volumeMounts:
            - mountPath: /app
              name: ninjam-config
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
            limits:
              cpu: 400m
              memory: 128Gi
      volumes:
        - name: ninjam-config
          hostPath:
            path: "/config/ninjamserver/ninjam-config/"
            type: DirectoryOrCreate