feat: snipeit

This commit is contained in:
Strix 2024-01-01 19:09:49 +01:00
parent ca7fb59460
commit b251cc9894
No known key found for this signature in database
GPG key ID: 5F35B3B8537287A7
3 changed files with 45 additions and 1 deletions

View file

@ -0,0 +1,11 @@
server {
listen 80;
server_name snipe.ixvd.net;
# SSL is managed by certbot, no need for a ssl listen; it will be generated automagically!
# default html page
location / {
proxy_pass http://snipeit;
}
}

View file

@ -0,0 +1,33 @@
# I'm very comfortable in this version, therefore it's the standard
version: '2.2'
services:
snipeit:
image: snipe/snipe-it
links:
- snipeit-db:mysql
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "snipeit"
MYSQL_USER: "snipeit"
MYSQL_PASSWORD: "snipeit"
APP_URL: "https://snipe.ixvd.net"
APP_TIMEZONE: "Europe/Amsterdam"
APP_LOCALE: "en"
APP_ENV: "production"
APP_DEBUG: "false"
PHP_UPLOAD_LIMIT: "100"
env_file:
- /etc/ixvd/secrets/env/snipeit.env
networks:
- proxy
snipeit-db:
image: mysql:5.6
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "snipeit"
MYSQL_USER: "snipeit"
MYSQL_PASSWORD: "snipeit"
volumes:
- /srv/snipeit/other/db:/var/lib/mysql

View file

@ -7,7 +7,7 @@ services:
build: custom/nginx
environment:
CERTBOT_EMAIL: "webmaster@ixvd.net"
CERTBOT_DOMAINS: "apoc.ixvd.net,mail.ixvd.net,git.ixvd.net,my.ixvd.net,ci.ixvd.net,baikal.ixvd.net,pg.ixvd.net"
CERTBOT_DOMAINS: "apoc.ixvd.net,mail.ixvd.net,git.ixvd.net,my.ixvd.net,ci.ixvd.net,baikal.ixvd.net,pg.ixvd.net,snipe.ixvd.net"
volumes:
- /srv/certbot/data:/etc/letsencrypt
- /srv/certbot/other/www:/var/www/certbot