From b251cc989474ba78a5f454870ad2c784b6086ca2 Mon Sep 17 00:00:00 2001 From: Raine Date: Mon, 1 Jan 2024 19:09:49 +0100 Subject: [PATCH] feat: snipeit --- .../custom/nginx/conf.d/snipeit.conf | 11 +++++++ .../docker-compose.snipeit.yml | 33 +++++++++++++++++++ .../apoc/docker-compose.d/docker-compose.yml | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf create mode 100644 servers/apoc/docker-compose.d/docker-compose.snipeit.yml diff --git a/servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf b/servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf new file mode 100644 index 0000000..ee9afd9 --- /dev/null +++ b/servers/apoc/docker-compose.d/custom/nginx/conf.d/snipeit.conf @@ -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; + } +} diff --git a/servers/apoc/docker-compose.d/docker-compose.snipeit.yml b/servers/apoc/docker-compose.d/docker-compose.snipeit.yml new file mode 100644 index 0000000..6d64d95 --- /dev/null +++ b/servers/apoc/docker-compose.d/docker-compose.snipeit.yml @@ -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 \ No newline at end of file diff --git a/servers/apoc/docker-compose.d/docker-compose.yml b/servers/apoc/docker-compose.d/docker-compose.yml index fbc73c5..ba05f0b 100644 --- a/servers/apoc/docker-compose.d/docker-compose.yml +++ b/servers/apoc/docker-compose.d/docker-compose.yml @@ -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