update
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# Dockhand credentials
|
||||
<%- if database_type == 'postgres' %>
|
||||
DATABASE_PASSWORD=<< database_password >>
|
||||
<%- endif %>
|
||||
<%- if encryption_key %>
|
||||
ENCRYPTION_KEY=<< encryption_key >>
|
||||
<%- endif %>
|
||||
@@ -0,0 +1,59 @@
|
||||
services:
|
||||
<< service_name >>:
|
||||
image: docker.io/fnsys/dockhand:v1.0.27
|
||||
restart: << restart_policy >>
|
||||
<%- if database_type == 'postgres' or disable_local_login or encryption_key or puid or pgid %>
|
||||
environment:
|
||||
<%- if database_type == 'postgres' %>
|
||||
- DATABASE_URL=postgres://<< database_user >>:${DATABASE_PASSWORD}@<< database_host >>:<< database_port >>/<< database_name >>
|
||||
<%- endif %>
|
||||
<%- if encryption_key %>
|
||||
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
|
||||
<%- endif %>
|
||||
<%- if puid %>
|
||||
- PUID=<< puid >>
|
||||
<%- endif %>
|
||||
<%- if pgid %>
|
||||
- PGID=<< pgid >>
|
||||
<%- endif %>
|
||||
<%- if disable_local_login %>
|
||||
- DISABLE_LOCAL_LOGIN=<< disable_local_login | lower >>
|
||||
<%- endif %>
|
||||
<%- endif %>
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- dockhand_data:/app/data
|
||||
<%- if traefik_enabled %>
|
||||
networks:
|
||||
- << traefik_network >>
|
||||
<%- endif %>
|
||||
<%- if not traefik_enabled %>
|
||||
ports:
|
||||
- "<< ports_http >>:3000"
|
||||
<%- endif %>
|
||||
<%- if traefik_enabled %>
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=<< traefik_network >>
|
||||
- traefik.http.services.<< service_name >>-web.loadBalancer.server.port=3000
|
||||
- traefik.http.routers.<< service_name >>-http.service=<< service_name >>-web
|
||||
- traefik.http.routers.<< service_name >>-http.rule=Host(`<< traefik_host >>.<< traefik_domain >>`)
|
||||
- traefik.http.routers.<< service_name >>-http.entrypoints=<< traefik_entrypoint >>
|
||||
<%- if traefik_tls_enabled %>
|
||||
- traefik.http.routers.<< service_name >>-https.service=<< service_name >>-web
|
||||
- traefik.http.routers.<< service_name >>-https.rule=Host(`<< traefik_host >>.<< traefik_domain >>`)
|
||||
- traefik.http.routers.<< service_name >>-https.entrypoints=<< traefik_tls_entrypoint >>
|
||||
- traefik.http.routers.<< service_name >>-https.tls=true
|
||||
- traefik.http.routers.<< service_name >>-https.tls.certresolver=<< traefik_tls_certresolver >>
|
||||
<%- endif %>
|
||||
<%- endif %>
|
||||
|
||||
volumes:
|
||||
dockhand_data:
|
||||
driver: local
|
||||
|
||||
<%- if traefik_enabled %>
|
||||
networks:
|
||||
<< traefik_network >>:
|
||||
external: true
|
||||
<%- endif %>
|
||||
@@ -0,0 +1,290 @@
|
||||
{
|
||||
"slug": "dockhand",
|
||||
"kind": "compose",
|
||||
"metadata": {
|
||||
"name": "Dockhand",
|
||||
"description": "Modern Docker management UI with Compose stack support, Git-based stack deployments, and optional OIDC authentication.",
|
||||
"tags": [
|
||||
"traefik",
|
||||
"postgresql",
|
||||
"sqlite"
|
||||
],
|
||||
"icon": {
|
||||
"provider": "selfhst",
|
||||
"id": "dockhand"
|
||||
},
|
||||
"draft": false,
|
||||
"version": {
|
||||
"name": "v1.0.27",
|
||||
"source_dep_name": "docker.io/fnsys/dockhand",
|
||||
"source_dep_version": "v1.0.27"
|
||||
}
|
||||
},
|
||||
"variables": [
|
||||
{
|
||||
"title": "General",
|
||||
"name": "general",
|
||||
"items": [
|
||||
{
|
||||
"name": "service_name",
|
||||
"type": "str",
|
||||
"title": "Service Name",
|
||||
"required": false,
|
||||
"default": "dockhand",
|
||||
"config": {
|
||||
"placeholder": "dockhand"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "restart_policy",
|
||||
"type": "enum",
|
||||
"title": "Restart Policy",
|
||||
"required": true,
|
||||
"default": "unless-stopped",
|
||||
"config": {
|
||||
"options": [
|
||||
"unless-stopped",
|
||||
"always",
|
||||
"on-failure",
|
||||
"no"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "encryption_key",
|
||||
"type": "secret",
|
||||
"title": "Encryption Key",
|
||||
"required": false,
|
||||
"description": "Base64-encoded 32-byte AES-256 key used for credential encryption.",
|
||||
"config": {
|
||||
"autogenerated": {
|
||||
"kind": "base64",
|
||||
"bytes": 32
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "puid",
|
||||
"type": "int",
|
||||
"title": "PUID",
|
||||
"required": false,
|
||||
"config": {
|
||||
"placeholder": "1000"
|
||||
},
|
||||
"description": "Optional user ID for Dockhand. On Linux check with `id -u`."
|
||||
},
|
||||
{
|
||||
"name": "pgid",
|
||||
"type": "int",
|
||||
"title": "PGID",
|
||||
"required": false,
|
||||
"config": {
|
||||
"placeholder": "1000"
|
||||
},
|
||||
"description": "Optional group ID for Dockhand. On Linux check with `id -g`."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Ports",
|
||||
"name": "ports",
|
||||
"items": [
|
||||
{
|
||||
"name": "ports_http",
|
||||
"type": "int",
|
||||
"title": "HTTP Port",
|
||||
"required": true,
|
||||
"default": 3000,
|
||||
"needs": [
|
||||
"traefik_enabled=false"
|
||||
],
|
||||
"config": {
|
||||
"placeholder": "3000"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Traefik",
|
||||
"name": "traefik",
|
||||
"toggle": "traefik_enabled",
|
||||
"items": [
|
||||
{
|
||||
"name": "traefik_enabled",
|
||||
"type": "bool",
|
||||
"title": "Traefik",
|
||||
"required": false,
|
||||
"default": false
|
||||
},
|
||||
{
|
||||
"name": "traefik_host",
|
||||
"type": "str",
|
||||
"title": "Host",
|
||||
"required": true,
|
||||
"config": {
|
||||
"placeholder": "dockhand"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_domain",
|
||||
"type": "str",
|
||||
"title": "Domain",
|
||||
"required": true,
|
||||
"config": {
|
||||
"placeholder": "home.arpa"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_entrypoint",
|
||||
"type": "str",
|
||||
"title": "Entrypoint",
|
||||
"required": true,
|
||||
"default": "web",
|
||||
"config": {
|
||||
"placeholder": "web"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_network",
|
||||
"type": "str",
|
||||
"title": "Network",
|
||||
"required": true,
|
||||
"default": "traefik",
|
||||
"config": {
|
||||
"placeholder": "traefik"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "traefik_tls_enabled",
|
||||
"type": "bool",
|
||||
"title": "TLS",
|
||||
"required": false,
|
||||
"default": false
|
||||
},
|
||||
{
|
||||
"name": "traefik_tls_entrypoint",
|
||||
"type": "str",
|
||||
"title": "TLS Entrypoint",
|
||||
"required": true,
|
||||
"default": "websecure",
|
||||
"config": {
|
||||
"placeholder": "websecure"
|
||||
},
|
||||
"needs": [
|
||||
"traefik_tls_enabled=true"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "traefik_tls_certresolver",
|
||||
"type": "str",
|
||||
"title": "Cert Resolver",
|
||||
"required": true,
|
||||
"default": "cloudflare",
|
||||
"needs": [
|
||||
"traefik_tls_enabled=true"
|
||||
],
|
||||
"config": {
|
||||
"placeholder": "cloudflare"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Database",
|
||||
"name": "database",
|
||||
"items": [
|
||||
{
|
||||
"name": "database_type",
|
||||
"type": "enum",
|
||||
"title": "Database Type",
|
||||
"required": false,
|
||||
"default": "sqlite",
|
||||
"config": {
|
||||
"options": [
|
||||
"sqlite",
|
||||
"postgres"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "database_host",
|
||||
"type": "str",
|
||||
"title": "Database Host",
|
||||
"required": true,
|
||||
"needs": [
|
||||
"database_type=postgres"
|
||||
],
|
||||
"default": "postgres",
|
||||
"config": {
|
||||
"placeholder": "postgres"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "database_port",
|
||||
"type": "int",
|
||||
"title": "Database Port",
|
||||
"required": true,
|
||||
"needs": [
|
||||
"database_type=postgres"
|
||||
],
|
||||
"default": 5432,
|
||||
"config": {
|
||||
"placeholder": "5432"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "database_name",
|
||||
"type": "str",
|
||||
"title": "Database Name",
|
||||
"required": true,
|
||||
"needs": [
|
||||
"database_type=postgres"
|
||||
],
|
||||
"default": "dockhand",
|
||||
"config": {
|
||||
"placeholder": "dockhand"
|
||||
},
|
||||
"description": "Database name used for PostgreSQL."
|
||||
},
|
||||
{
|
||||
"name": "database_user",
|
||||
"type": "str",
|
||||
"title": "Database User",
|
||||
"required": true,
|
||||
"needs": [
|
||||
"database_type=postgres"
|
||||
],
|
||||
"default": "dockhand",
|
||||
"config": {
|
||||
"placeholder": "dockhand"
|
||||
},
|
||||
"description": "Username used for PostgreSQL."
|
||||
},
|
||||
{
|
||||
"name": "database_password",
|
||||
"type": "secret",
|
||||
"title": "Database Password",
|
||||
"required": true,
|
||||
"needs": [
|
||||
"database_type=postgres"
|
||||
],
|
||||
"description": "Password used for PostgreSQL."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Authentication",
|
||||
"name": "authentication",
|
||||
"items": [
|
||||
{
|
||||
"name": "disable_local_login",
|
||||
"type": "bool",
|
||||
"title": "Disable Local Login",
|
||||
"required": false,
|
||||
"default": false,
|
||||
"description": "when SSO correctly setup, not recommended as first deployment"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user