feat: add all other deployed services
This commit is contained in:
parent
08f886f5f4
commit
06fe514221
2 changed files with 54 additions and 30 deletions
76
Caddyfile
76
Caddyfile
|
@ -1,59 +1,75 @@
|
||||||
# Components
|
# Components
|
||||||
|
|
||||||
(application_logging) {
|
(application_logging) {
|
||||||
log {
|
log {
|
||||||
level INFO
|
level INFO
|
||||||
output stdout
|
output stdout
|
||||||
output file /var/log/caddy/caddy_{args[0]}.log {
|
output file /var/log/caddy/caddy_{args[0]}.log {
|
||||||
roll_size 100MiB
|
roll_size 100MiB
|
||||||
roll_keep 5
|
roll_keep 5
|
||||||
roll_keep_for 100d
|
roll_keep_for 100d
|
||||||
}
|
}
|
||||||
format json
|
format json
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(reverse_proxy_host) {
|
(reverse_proxy_host) {
|
||||||
reverse_proxy host.containers.internal:{args[0]}
|
reverse_proxy host.containers.internal:{args[0]}
|
||||||
}
|
}
|
||||||
|
|
||||||
(application_base) {
|
(application_base) {
|
||||||
import application_logging {args[0]}
|
import application_logging {args[0]}
|
||||||
import reverse_proxy_host {args[1]}
|
import reverse_proxy_host {args[1]}
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
log default {
|
log default {
|
||||||
output stdout
|
output stdout
|
||||||
output file /var/log/caddy/caddy_main.log {
|
output file /var/log/caddy/caddy_main.log {
|
||||||
roll_size 100MiB
|
roll_size 100MiB
|
||||||
roll_keep 5
|
roll_keep 5
|
||||||
roll_keep_for 100d
|
roll_keep_for 100d
|
||||||
}
|
}
|
||||||
format json
|
format json
|
||||||
}
|
}
|
||||||
|
|
||||||
servers {
|
servers {
|
||||||
metrics
|
metrics
|
||||||
}
|
}
|
||||||
|
|
||||||
admin :2019
|
admin :2019
|
||||||
}
|
}
|
||||||
|
|
||||||
# Routes
|
# Routes
|
||||||
|
|
||||||
:53100 {
|
:53100 {
|
||||||
import application_base "grafana" 3100
|
import application_base "grafana" 3100
|
||||||
}
|
}
|
||||||
|
|
||||||
:53000 {
|
:53000 {
|
||||||
import application_base "forgejo" 3000
|
import application_base "forgejo" 3000
|
||||||
}
|
}
|
||||||
|
|
||||||
:52052 {
|
:52052 {
|
||||||
import application_base "forgejo-ssh" 2052
|
import application_base "forgejo-ssh" 2052
|
||||||
}
|
}
|
||||||
|
|
||||||
:53001 {
|
:53001 {
|
||||||
import application_base "forgejo-pg-exporter" 3001
|
import application_base "forgejo-pg-exporter" 3001
|
||||||
|
}
|
||||||
|
|
||||||
|
:55000 {
|
||||||
|
import application_base "registry" 5000
|
||||||
|
}
|
||||||
|
|
||||||
|
:58080 {
|
||||||
|
import application_base "bitwarden-web" 8080
|
||||||
|
}
|
||||||
|
|
||||||
|
:53010 {
|
||||||
|
import application_base "bookstack-web" 3010
|
||||||
|
}
|
||||||
|
|
||||||
|
:58112 {
|
||||||
|
import application_base "deluge-web" 8112
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,14 @@ ports:
|
||||||
container: 52052
|
container: 52052
|
||||||
- host: 53001
|
- host: 53001
|
||||||
container: 53001
|
container: 53001
|
||||||
|
- host: 55000
|
||||||
|
container: 55000
|
||||||
|
- host: 58080
|
||||||
|
container: 58080
|
||||||
|
- host: 53010
|
||||||
|
container: 53010
|
||||||
|
- host: 58112
|
||||||
|
container: 58112
|
||||||
# Caddy admin API
|
# Caddy admin API
|
||||||
- host: 2019
|
- host: 2019
|
||||||
container: 2019
|
container: 2019
|
||||||
|
|
Loading…
Reference in a new issue