Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
empeje committed Feb 24, 2020
0 parents commit 7c6a521
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .env
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
29 changes: 29 additions & 0 deletions README.md
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).
26 changes: 26 additions & 0 deletions docker-compose.yml
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:

0 comments on commit 7c6a521

Please sign in to comment.