add podman systemd files for database
This commit is contained in:
parent
f181cd388a
commit
742388c3ca
6 changed files with 44 additions and 2 deletions
|
|
@ -0,0 +1,4 @@
|
|||
[Pod]
|
||||
PodName=databases
|
||||
PublishPort=9090:3000
|
||||
PublishPort=5432:5432
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
[Container]
|
||||
Image=docker.io/dbgate/dbgate
|
||||
AutoUpdate=registry
|
||||
Pod=dev-databases.pod
|
||||
Environment=CONNECTIONS=POSTGRES
|
||||
Environment=LABEL_POSTGRES="Localhost Postgres"
|
||||
Environment=ENGINE_POSTGRES=postgres@dbgate-plugin-postgres
|
||||
Environment=SERVER_POSTGRES=localhost
|
||||
Environment=PORT_POSTGRES=5432
|
||||
Environment=USER_POSTGRES=postgres
|
||||
Environment=PASSWORD_POSTGRES=1234
|
||||
|
||||
[Service]
|
||||
ExecStartPost=/usr/bin/xdg-open http://localhost:9090
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
[Container]
|
||||
Image=docker.io/postgres:17
|
||||
AutoUpdate=registry
|
||||
Environment=POSTGRES_USER=postgres
|
||||
Environment=POSTGRES_PASSWORD=1234
|
||||
Pod=dev-databases.pod
|
||||
Volume=dev-postgres-data:/var/lib/postgresql/data
|
||||
|
|
@ -116,7 +116,7 @@ vim.filetype.add({
|
|||
mdx = "mdx",
|
||||
log = "log",
|
||||
conf = "conf",
|
||||
env = "dotenv",
|
||||
env = "dotenv"
|
||||
},
|
||||
-- Detect and apply filetypes based on the entire filename
|
||||
filename = {
|
||||
|
|
@ -131,5 +131,14 @@ vim.filetype.add({
|
|||
[".*%.blade%.php"] = "blade",
|
||||
[".*%.hurl.*"] = "hurl",
|
||||
[".*/hypr/.*%.conf"] = "hyprlang",
|
||||
['.*/systemd/.*%.(%a+)'] = function(path, bufnr, ext)
|
||||
vim.print(ext)
|
||||
local allowed = { "container", "volume", "network", "build", "pod", "kube" }
|
||||
for _, v in ipairs(allowed) do
|
||||
if v == ext then
|
||||
return "ini"
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -42,7 +42,12 @@ alias \
|
|||
|
||||
alias \
|
||||
pco='podman compose' \
|
||||
pps="podman ps --format 'table {{.ID}}\t{{.Names}}\t{{.State}}\t{{.Status}}\t{{.RunningFor}}'"
|
||||
pps="podman ps --format 'table {{.ID}}\t{{.Names}}\t{{.State}}\t{{.Status}}\t{{.RunningFor}}'" \
|
||||
psd="/usr/lib/systemd/system-generators/podman-system-generator --user --dryrun | bat -l ini"
|
||||
|
||||
alias \
|
||||
sysctl='sudo systemctl' \
|
||||
sysctl-user='systemctl --user'
|
||||
|
||||
# Misc
|
||||
alias \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue