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",
|
mdx = "mdx",
|
||||||
log = "log",
|
log = "log",
|
||||||
conf = "conf",
|
conf = "conf",
|
||||||
env = "dotenv",
|
env = "dotenv"
|
||||||
},
|
},
|
||||||
-- Detect and apply filetypes based on the entire filename
|
-- Detect and apply filetypes based on the entire filename
|
||||||
filename = {
|
filename = {
|
||||||
|
|
@ -131,5 +131,14 @@ vim.filetype.add({
|
||||||
[".*%.blade%.php"] = "blade",
|
[".*%.blade%.php"] = "blade",
|
||||||
[".*%.hurl.*"] = "hurl",
|
[".*%.hurl.*"] = "hurl",
|
||||||
[".*/hypr/.*%.conf"] = "hyprlang",
|
[".*/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 \
|
alias \
|
||||||
pco='podman compose' \
|
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
|
# Misc
|
||||||
alias \
|
alias \
|
||||||
|
|
|
||||||
3
Hooks/containers/post_reload_daemons.sh
Executable file
3
Hooks/containers/post_reload_daemons.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
systemctl --user daemon-reload
|
||||||
Loading…
Add table
Add a link
Reference in a new issue