snipe-it Docker & Self-Hosted Deployment

GitHub

A free open source IT asset/license management system

RAW Compose
1. Pull Image (DOCKERHUB) docker pull library/mariadb
2. Docker Run (1-Click Launch) docker run -d --name snipe-it -p 8000:8000 --restart always mariadb:11.4.7
3. Podman Run podman run -d --name snipe-it -p 8000:8000 --restart always mariadb:11.4.7
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/library/mariadb:11.4.7
5. ORAS Pull (OCI Artifact) oras pull mariadb:11.4.7
6. Compose Deployment docker compose up -d
dev.docker-compose.yml
Download .yml
# Compose file to spin up a local Snipe-IT for development.

version: '3'

services:
  snipeit:
    build:
      context: .
      dockerfile: Dockerfile.alpine
    container_name: snipeit
    ports:
      - "8000:80"
    depends_on:
      redis:
        # The default needs to be stated.
        condition: service_started
      mariadb:
        condition: service_healthy
        restart: true
    env_file:
      - .env.dev.docker

  mariadb:
    image: mariadb:11.4.7
    volumes:
      - db:/var/lib/mysql
    env_file:
      - .env.dev.docker
    ports:
      - "3306:3306"
    healthcheck:
      # https://mariadb.com/kb/en/using-healthcheck-sh/#compose-file-example
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      interval: 5s
      timeout: 2s
      retries: 5

  redis:
    image: redis:7.4.3

  mailhog:
    image: mailhog/mailhog:v1.0.1
    ports:
      # - 1025:1025
      - "8025:8025"

volumes:
  db: {}