-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7c6a521
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Mysql Parameters | ||
MYSQL_PORT_3306_TCP_ADDR=snipe-mysql | ||
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:80 | ||
APP_TIMEZONE=US/Pacific | ||
APP_LOCALE=en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# How to Use it | ||
|
||
## Generate App key | ||
|
||
```bash | ||
docker-compose exec snipe-it php artisan key:generate | ||
``` | ||
|
||
Notes: | ||
|
||
Add that APP_KEY to your docker env-file (we left a placeholder for it in your starting docker env file, above). **Make sure to include the base64: prefix if it is given!** If you're not using an env-file, you will need to pass the APP_KEY as an environment variable to your docker container. | ||
|
||
## Replace the App key place holder | ||
|
||
Replace placeholder in `APP_KEY=<<Fill in Later!>>` with the key you get, don't forget to bring the **base64:** prefix. | ||
|
||
## Running the app | ||
|
||
After you set the key here is you can run the app | ||
|
||
```bash | ||
# run the app on detach mode | ||
docker-compose up -d | ||
|
||
# see the logs | ||
docker-compose logs -f snipe-it # snipe-it | ||
``` | ||
|
||
For more information see [this document](https://snipe-it.readme.io/docs/docker). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
snipe-mysql: | ||
container_name: snipe-mysql | ||
image: mysql:5.6 | ||
env_file: | ||
- ./.env | ||
volumes: | ||
- snipesql-vol:/var/lib/mysql | ||
command: --default-authentication-plugin=mysql_native_password | ||
expose: | ||
- "3306" | ||
|
||
snipe-it: | ||
image: snipe/snipe-it | ||
env_file: | ||
- ./.env | ||
ports: | ||
- "3051:80" | ||
depends_on: | ||
- snipe-mysql | ||
|
||
volumes: | ||
snipesql-vol: |