Install Docker Engine:
#sudo -i
#sudo apt update
#sudo apt install apt-transport-https ca-certificates curl software-properties-common
#curl -fsSL download.docke... | sudo apt-key add -
#sudo add-apt-repository "deb [arch=amd64] download.docke... bionic stable"
#sudo apt update
#apt-cache policy docker-ce
#sudo apt install docker-ce
#sudo systemctl status docker
Install Docker Compose:
#sudo curl -L "github.com/doc... -s)-$(uname -m)" -o /usr/local/bin/docker-compose
#sudo chmod +x /usr/local/bin/docker-compose
#docker-compose --version
Install Snipe-IT
#sudo -i
#mkdir snipe_mysql
#mkdir snipe-it
#cd snipe-it
root@ubdesktop:~/snipe-it# nano docker-compose.yml
(paste below as -is )
version: "3"
services:
mysql:
image: mysql:5
container_name: snipe_mysql
restart: always
volumes:
- /root/snipe_mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=EV7ehdGyeSLAtm3W
- MYSQL_USER=snipe
- MYSQL_PASSWORD=EV7ehdGyeSLAtm3W
- MYSQL_DATABASE=snipe
snipeit:
image: linuxserver/snipe-it:latest
container_name: snipe-it
restart: always
depends_on:
- mysql
volumes:
- /root/snipe_it:/config
environment:
- APP_URL=10.100.100.231:8084
- MYSQL_PORT_3306_TCP_ADDR=mysql
- MYSQL_PORT_3306_TCP_PORT=3306
- MYSQL_DATABASE=snipe
- MYSQL_USER=snipe
- MYSQL_PASSWORD=EV7ehdGyeSLAtm3W
- PGID=1000
- PUID=1000
ports:
- "8084:80"
root@~/snipe-it# docker-compose up -d
Open up a browser and go to 10.100.100.231:8084
16 окт 2024