mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-08 07:25:23 +02:00
feat: add Snipe-IT template (#897)
This commit is contained in:
68
blueprints/snipe-it/docker-compose.yml
Normal file
68
blueprints/snipe-it/docker-compose.yml
Normal file
@@ -0,0 +1,68 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
snipe-it:
|
||||
image: snipe/snipe-it:v8.5.0
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 80
|
||||
volumes:
|
||||
- snipe-it-storage:/var/lib/snipeit
|
||||
environment:
|
||||
- APP_ENV=production
|
||||
- APP_DEBUG=false
|
||||
- APP_KEY=${APP_KEY}
|
||||
- APP_URL=${APP_URL}
|
||||
- APP_TIMEZONE=${APP_TIMEZONE}
|
||||
- APP_LOCALE=${APP_LOCALE}
|
||||
- APP_TRUSTED_PROXIES=${APP_TRUSTED_PROXIES}
|
||||
- APP_FORCE_TLS=${APP_FORCE_TLS}
|
||||
- SECURE_COOKIES=${SECURE_COOKIES}
|
||||
- PRIVATE_FILESYSTEM_DISK=local
|
||||
- PUBLIC_FILESYSTEM_DISK=local_public
|
||||
- DB_CONNECTION=mysql
|
||||
- DB_HOST=snipe-it-db
|
||||
- DB_PORT=3306
|
||||
- DB_DATABASE=${DB_DATABASE}
|
||||
- DB_USERNAME=${DB_USERNAME}
|
||||
- DB_PASSWORD=${DB_PASSWORD}
|
||||
- DB_PREFIX=null
|
||||
- DB_DUMP_PATH=/usr/bin
|
||||
- DB_DUMP_SKIP_SSL=true
|
||||
- DB_CHARSET=utf8mb4
|
||||
- DB_COLLATION=utf8mb4_unicode_ci
|
||||
- MAIL_MAILER=log
|
||||
- MAIL_FROM_ADDR=${MAIL_FROM_ADDR}
|
||||
- MAIL_FROM_NAME=Snipe-IT
|
||||
- MAIL_REPLYTO_ADDR=${MAIL_FROM_ADDR}
|
||||
- MAIL_REPLYTO_NAME=Snipe-IT
|
||||
- ALLOW_BACKUP_DELETE=false
|
||||
- ALLOW_DATA_PURGE=false
|
||||
- IMAGE_LIB=gd
|
||||
- LOG_CHANNEL=stderr
|
||||
- CACHE_DRIVER=file
|
||||
- SESSION_DRIVER=file
|
||||
- QUEUE_DRIVER=sync
|
||||
depends_on:
|
||||
snipe-it-db:
|
||||
condition: service_healthy
|
||||
|
||||
snipe-it-db:
|
||||
image: mariadb:11.4.7
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- snipe-it-db-data:/var/lib/mysql
|
||||
environment:
|
||||
- MYSQL_DATABASE=${DB_DATABASE}
|
||||
- MYSQL_USER=${DB_USERNAME}
|
||||
- MYSQL_PASSWORD=${DB_PASSWORD}
|
||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||
healthcheck:
|
||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||
interval: 5s
|
||||
timeout: 2s
|
||||
retries: 10
|
||||
|
||||
volumes:
|
||||
snipe-it-storage:
|
||||
snipe-it-db-data:
|
||||
BIN
blueprints/snipe-it/snipe-it.png
Normal file
BIN
blueprints/snipe-it/snipe-it.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
25
blueprints/snipe-it/template.toml
Normal file
25
blueprints/snipe-it/template.toml
Normal file
@@ -0,0 +1,25 @@
|
||||
[variables]
|
||||
main_domain = "${domain}"
|
||||
app_key = "${base64:32}"
|
||||
db_password = "${password:24}"
|
||||
mysql_root_password = "${password:24}"
|
||||
|
||||
[config]
|
||||
[[config.domains]]
|
||||
serviceName = "snipe-it"
|
||||
port = 80
|
||||
host = "${main_domain}"
|
||||
|
||||
[config.env]
|
||||
APP_KEY = "base64:${app_key}"
|
||||
APP_URL = "https://${main_domain}"
|
||||
APP_TIMEZONE = "UTC"
|
||||
APP_LOCALE = "en-US"
|
||||
APP_TRUSTED_PROXIES = "172.0.0.0/8"
|
||||
APP_FORCE_TLS = "true"
|
||||
SECURE_COOKIES = "true"
|
||||
DB_DATABASE = "snipeit"
|
||||
DB_USERNAME = "snipeit"
|
||||
DB_PASSWORD = "${db_password}"
|
||||
MYSQL_ROOT_PASSWORD = "${mysql_root_password}"
|
||||
MAIL_FROM_ADDR = "snipe-it@${main_domain}"
|
||||
18
meta.json
18
meta.json
@@ -6108,6 +6108,24 @@
|
||||
"authentication"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "snipe-it",
|
||||
"name": "Snipe-IT",
|
||||
"version": "v8.5.0",
|
||||
"description": "Snipe-IT is an open-source asset management system for tracking hardware, software licenses, accessories, and consumables.",
|
||||
"logo": "snipe-it.png",
|
||||
"links": {
|
||||
"github": "https://github.com/grokability/snipe-it",
|
||||
"website": "https://snipeitapp.com/",
|
||||
"docs": "https://snipe-it.readme.io/docs"
|
||||
},
|
||||
"tags": [
|
||||
"asset-management",
|
||||
"inventory",
|
||||
"business",
|
||||
"self-hosted"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "soketi",
|
||||
"name": "Soketi",
|
||||
|
||||
Reference in New Issue
Block a user