Add homebox
This commit is contained in:
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@@ -33,7 +33,7 @@ Vagrant.configure("2") do |config|
|
|||||||
|
|
||||||
# Create a private network, which allows host-only access to the machine
|
# Create a private network, which allows host-only access to the machine
|
||||||
# using a specific IP.
|
# 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.
|
# Create a public network, which generally matched to bridged network.
|
||||||
# Bridged networks make the machine appear as another physical device on
|
# Bridged networks make the machine appear as another physical device on
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
CREATE DATABASE IF NOT EXISTS `monica`;
|
|
||||||
CREATE DATABASE IF NOT EXISTS `gitea`;
|
CREATE DATABASE IF NOT EXISTS `gitea`;
|
||||||
CREATE DATABASE IF NOT EXISTS `tt-rss`;
|
CREATE DATABASE IF NOT EXISTS `tt-rss`;
|
||||||
# Nextcloud will automatically create a database on setup
|
# Nextcloud will automatically create a database on setup
|
||||||
|
|||||||
@@ -98,6 +98,24 @@ services:
|
|||||||
- "tower.${DOMAIN}:${LOCAL_IP}"
|
- "tower.${DOMAIN}:${LOCAL_IP}"
|
||||||
- "office.${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:
|
gitea:
|
||||||
<<: *logging
|
<<: *logging
|
||||||
image: gitea/gitea:1
|
image: gitea/gitea:1
|
||||||
@@ -573,6 +591,7 @@ services:
|
|||||||
- pihole
|
- pihole
|
||||||
- foundry
|
- foundry
|
||||||
- tt-rss
|
- tt-rss
|
||||||
|
- homebox
|
||||||
ports:
|
ports:
|
||||||
- 443:443
|
- 443:443
|
||||||
networks:
|
networks:
|
||||||
@@ -607,6 +626,7 @@ volumes:
|
|||||||
gitea:
|
gitea:
|
||||||
nextcloud:
|
nextcloud:
|
||||||
foundry:
|
foundry:
|
||||||
|
homebox:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
db:
|
db:
|
||||||
|
|||||||
@@ -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 {
|
upstream tt-rss-handler {
|
||||||
server tt-rss:9000;
|
server tt-rss:9000;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user