Тёмный

Snipe IT Self Hosted on Ubuntu 20.04 using Docker Under 5 Mins- 2021 - Free and OpenSource 

FOSS DOM
Подписаться 474
Просмотров 13 тыс.
50% 1

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

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 11   
@GrunerIndiaPrivateLimited
@GrunerIndiaPrivateLimited 2 месяца назад
HOW TO CONFIGURE OUTGOING MAIL CONFIGURATION
@OGkillb
@OGkillb 2 года назад
1st one that actually worked...think it's the quickest too!
@4guysdigitalenterprise303
@4guysdigitalenterprise303 2 года назад
Is it intentional that you use this " #mkdir snipe-it " and then, in the config file, there is " volumes: - /root/snipe_it:/config " This will have two different directories created. Is this intentional? Following your instructions, I cannot get the web interface to connect. I verified that the docker container is up and running, and I added an allow for the port on the firewall. Thank you.
@sagarkandel6140
@sagarkandel6140 3 года назад
@FOSS DOM How do i setup outgoing email server settings? Didn't work editing the docker-compose.yml file and re-executing the docker-compose up -d command. Please help
@MrPaulLiu
@MrPaulLiu Год назад
Thank you for your tutorial. It worked great. I was wondering if you know where the "html root directory" would be located with this install? I noticed that the www directory is not it.
@fossdom5568
@fossdom5568 Год назад
If its for the image not showing issue add a 2nd volume , github.com/snipe/snipe-it/issues/8282
@fatihdensay5744
@fatihdensay5744 3 года назад
Hi, thanks for video. It works %100. I have a question. How can i edit env file? I am having issue seeing images checking over assets so i need to edit env file
@fossdom5568
@fossdom5568 3 года назад
root@snipe-it:cd snipe-it/ root@snipe-it:~/snipe-it# ls docker-compose.yml keys log nginx php SNIPE_IT_APP_KEY.txt storage uploads www root@snipe-it:~/snipe-it# nano docker-compose.yml Look for environment and add as seen below environment: - APP_URL=172.17.5.235:7500
@fatihdensay5744
@fatihdensay5744 3 года назад
@@fossdom5568 Hi, thanks for answer. I did but i cannot see the image i upload. When i click images for seeing it says "failed to load images". Do you have any idea? They say "php artisan config:clear" github but i don't know how to do it. i added these two the env "PRIVATE_FILESYSTEM_DISK=local PUBLIC_FILESYSTEM_DISK=local_public"
@TheTheThewillow
@TheTheThewillow 3 года назад
Hi why am I getting Http error 500
@rizalfatah1
@rizalfatah1 2 года назад
i fell in the same problem, but restart all containers, it will be fixed
Далее
Snipe-IT Asset Management in Docker
30:46
Просмотров 59 тыс.
18 Weird and Wonderful ways I use Docker
26:18
Просмотров 297 тыс.
SNIPE-IT Installation On Ubuntu (NGINX)
28:40
Просмотров 21 тыс.
Using docker in unusual ways
12:58
Просмотров 456 тыс.
Best Docker Containers in 2024
12:43
Просмотров 137 тыс.