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