1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OCSInventoryの立ち上げ方

Posted at

# 手順メモ

#ubuntu16.04
sudo apt-get update
sudo apt-get install git

#Install docker-compose
https://docs.docker.com/compose/install/#master-builds

#version3なのでとりあえず最新のdocker-composeを導入
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
#1.22.0になっていることを確認
docker-compose --version
#sudoめんどくさいのでdockerグループにする
sudo groupadd docker
#$MEは現在ログイン中のユーザ
sudo gpasswd -a $ME docker
#とりあえずデーモン再起動
sudo systemctl restart docker
exit
#再ログインして

#OCSInventoryをgitclone
sudo git clone https://github.com/OCSInventory-NG/OCSInventory-Docker-Stack.git
cd OCSInventory-Docker-Stack
docker-compose build
#docker-compose.ymlを編集
#ports :
#- 8083:80
#- 443:443
#80番は使用しているので、portを8083に変更
docker-compose up &

# ブラウザで確認してみる
http://<YourIpAdder>:<Port>/ocsreports
#初期値は以下、ログインしてみる。
ID:admin
PASS:admin

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?