Add homebox

This commit is contained in:
2023-08-11 17:38:42 +01:00
parent e1764ec154
commit 902da05b4c
4 changed files with 41 additions and 2 deletions

2
Vagrantfile vendored
View File

@@ -33,7 +33,7 @@ Vagrant.configure("2") do |config|
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.10.10"
config.vm.network "private_network", ip: "192.168.56.10"
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on

View File

@@ -1,4 +1,3 @@
CREATE DATABASE IF NOT EXISTS `monica`;
CREATE DATABASE IF NOT EXISTS `gitea`;
CREATE DATABASE IF NOT EXISTS `tt-rss`;
# Nextcloud will automatically create a database on setup

View File

@@ -98,6 +98,24 @@ services:
- "tower.${DOMAIN}:${LOCAL_IP}"
- "office.${DOMAIN}:${LOCAL_IP}"
homebox:
<<: *logging
image: ghcr.io/hay-kot/homebox:latest
restart: unless-stopped
environment:
- HBOX_LOG_LEVEL=info
- HBOX_LOG_FORMAT=text
- HBOX_WEB_MAX_UPLOAD_SIZE=10
- HBOX_OPTIONS_ALLOW_REGISTRATION=false
- HBOX_MAILER_HOST=${MAIL_HOST}
- HBOX_MAILER_PORT=${MAIL_PORT}
- HBOX_MAILER_USERNAME=${MAIL_USER}
- HBOX_MAILER_PASSWORD=${MAIL_PASSWORD}
volumes:
- homebox:/data/
networks:
- nginx
gitea:
<<: *logging
image: gitea/gitea:1
@@ -573,6 +591,7 @@ services:
- pihole
- foundry
- tt-rss
- homebox
ports:
- 443:443
networks:
@@ -607,6 +626,7 @@ volumes:
gitea:
nextcloud:
foundry:
homebox:
networks:
db:

View File

@@ -282,6 +282,26 @@ http {
}
}
upstream homebox-handler {
server homebox:7745;
}
server {
listen 443 ssl http2;
ssl_certificate /etc/nginx/certs/${DOMAIN}.crt;
ssl_certificate_key /etc/nginx/certs/${DOMAIN}.key;
gzip_types text/plain text/css application/json application/x-javascript
text/xml application/xml application/xml+rss text/javascript;
server_name assets.${DOMAIN};
location / {
proxy_pass http://homebox-handler;
}
}
upstream tt-rss-handler {
server tt-rss:9000;
}