Add initial services

main
mat ess 2022-07-04 17:26:51 -04:00
commit 07e5eb6b4d
4 changed files with 146 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.nvimlog

51
firefly/fly.toml Normal file
View File

@ -0,0 +1,51 @@
# fly.toml file generated for firefly-mat-services on 2022-07-03T14:06:52-04:00
app = "firefly-mat-services"
kill_signal = "SIGINT"
kill_timeout = 5
[build]
image = "fireflyiii/core:latest"
[env]
APP_URL = "https://firefly.mat.services"
DB_CONNECTION = "sqlite"
SITE_OWNER = "mat@mat.services"
TZ = "America/New_York"
TRUSTED_PROXIES = "**"
[experimental]
allowed_public_ports = []
auto_rollback = true
[mounts]
destination = "/var/www/html/storage/upload"
source = "firefly_data"
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"

48
gitea/fly.toml Normal file
View File

@ -0,0 +1,48 @@
# fly.toml file generated for gitea-mat-services on 2022-07-02T22:14:05-04:00
app = "gitea-mat-services"
kill_signal = "SIGINT"
kill_timeout = 5
[build]
image = "gitea/gitea:latest"
[env]
GITEA__database__DB_TYPE = "sqlite3"
GITEA__database__PATH = "/data/gitea/gitea.db"
GITEA__server__DOMAIN = "git.mat.services"
GITEA__server__SSH_DOMAIN = "git.mat.services"
GITEA__server__ROOT_URL = "https://git.mat.services"
GITEA__security__INSTALL_LOCK = "true" # Don't show installer
GITEA__service__DISABLE_REGISTRATION = "true"
[experimental]
allowed_public_ports = []
auto_rollback = true
[mounts]
destination = "/data"
source = "gitea_data"
# ssh traffic
[[services]]
internal_port = 22
protocol = "tcp"
[[services.ports]]
port = 22
# https traffic
[[services]]
internal_port = 3000
protocol = "tcp"
[[services.ports]]
handlers = ["http"]
force_https = true
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443

46
vaultwarden/fly.toml Normal file
View File

@ -0,0 +1,46 @@
# fly.toml file generated for vaultwarden-mat-services on 2022-07-04T15:45:36-04:00
app = "vaultwarden-mat-services"
kill_signal = "SIGINT"
kill_timeout = 5
[build]
image = "vaultwarden/server:latest"
[env]
DOMAIN = "https://vault.mat.services"
[experimental]
allowed_public_ports = []
auto_rollback = true
[mounts]
destination = "/data"
source = "vaultwarden_data"
[[services]]
http_checks = []
internal_port = 80
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"