"Snipe-IT Inventory Management with Docker Compose on Ubuntu 20.04: Step-by-Step Setup Guide"

Опубликовано: 03 Октябрь 2024
на канале: The SysAdm
2,398
16

#learnbengali #learnlinux #linux #linuxadministration #linuxbasics #linuxforbeginners #rhel #ubuntu #snipe #linuxos #systemadministration #sysadmin #bms #bgmi #red #inventory

In this comprehensive tutorial, we'll walk you through the process of configuring Snipe-IT, a powerful inventory management tool, using Docker Compose on the Ubuntu 20.04 operating system. Whether you're a business owner looking to streamline your inventory processes or an IT enthusiast seeking to enhance your skills, this step-by-step setup guide has got you covered.

You'll learn how to harness the capabilities of Docker Compose to effortlessly deploy Snipe-IT, ensuring efficient inventory management for your organization. Our easy-to-follow instructions will cover everything from installing Docker and Docker Compose to configuring Snipe-IT within the Ubuntu 20.04 environment.

By the end of this tutorial, you'll have a fully functional Snipe-IT instance up and running, ready to help you manage your assets and inventory with ease. Don't miss out on this valuable resource – hit that play button and get started on optimizing your inventory management system today!


****************************************************************************

Commands :

sudo -i
apt update
curl -fsSL https://download.docker.com/linux/ubu... | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
apt update
apt-cache policy docker-ce
sudo apt install docker-ce
docker --version
sudo systemctl status docker
sudo curl -L "https://github.com/docker/compose/rel... -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
mkdir snipe_mysql
mkdir snipe-it
cd snipe-it
vim docker-compose.yml

------------------------------------------------------------------------------------------------------

[Insert the below content in the yaml file after modification as per requirement]

version: "3"
services:
mysql:
image: mysql:5
container_name: snipeit-inv
restart: always
volumes:
/root/snipe_mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD=!qaz@wsx
MYSQL_USER=snipeit
MYSQL_PASSWORD=!qaz@wsx
MYSQL_DATABASE=snipeit_db
snipeit:
image: linuxserver/snipe-it:latest
container_name: snipe-it
restart: always
depends_on:
mysql
volumes:
/root/snipe_it:/config
environment:
APP_URL=http://x.x.x.x:100
MYSQL_PORT_3306_TCP_ADDR=mysql
MYSQL_PORT_3306_TCP_PORT=3306
MYSQL_DATABASE=snipeit_db
MYSQL_USER=snipeit
MYSQL_PASSWORD=!qaz@wsx
PGID=1000
PUID=1000
ports:
"100:80"

Save the file & enter the rest commands mentioned below
---------------------------------------------------------------------------------------------

docker-compose up -d
docker image ls
docker container ls