설치

Docker를 사용하여 설치합니다

사전 반품을 설치 한 후에는 다음 명령을 실행하여 Docker 이미지를 가져옵니다.

docker pull snipe/snipe-it

다음으로 “my_env_file"이라는 .env 파일을 작성하고 다음 데이터를 배치하십시오.

# Mysql Parameters MYSQL_ROOT_PASSWORD=YOUR_SUPER_SECRET_PASSWORD MYSQL_DATABASE=snipeit MYSQL_USER=snipeit MYSQL_PASSWORD=YOUR_snipeit_USER_PASSWORD # Email Parameters # - the hostname/IP address of your mailserver MAIL_PORT_587_TCP_ADDR=smtp.whatever.com #the port for the mailserver (probably 587, could be another) MAIL_PORT_587_TCP_PORT=587 # the default from address, and from name for emails MAIL_ENV_FROM_ADDR=youremail@yourdomain.com MAIL_ENV_FROM_NAME=Your Full Email Name # - pick 'tls' for SMTP-over-SSL, 'tcp' for unencrypted MAIL_ENV_ENCRYPTION=tcp # SMTP username and password MAIL_ENV_USERNAME=your_email_username MAIL_ENV_PASSWORD=your_email_password # Snipe-IT Settings APP_ENV=production APP_DEBUG=false APP_KEY=<<Fill in Later!>> APP_URL=http://127.0.0.1:YOUR_PORT_NUMBER APP_TIMEZONE=US/Pacific APP_LOCALE=en

이제 MySQL 컨테이너를 실행하려면 다음 명령을 실행하십시오.

docker run --name snipe-mysql --env-file=my_env_file --mount source=snipesql-vol,target=/var/lib/mysql -d -P mysql:5.6

마지막으로 Docker 컨테이너를 다음 명령으로 회전 할 수 있습니다.

docker run --rm snipe/snipe-it 
 한국인