After many attemps
This commit is contained in:
28
home/podman/.config/containers/systemd/gitea-db.container
Normal file
28
home/podman/.config/containers/systemd/gitea-db.container
Normal file
@ -0,0 +1,28 @@
|
||||
[Container]
|
||||
AutoUpdate=registry
|
||||
ContainerName=gitea-db
|
||||
Environment="POSTGRES_DB=gitea"
|
||||
Environment="POSTGRES_PASSWORD=gitea"
|
||||
Environment="POSTGRES_USER=gitea"
|
||||
Image=docker.io/library/postgres:14
|
||||
# Network=gitea.network
|
||||
# Pod=gitea.pod
|
||||
PublishPort=5433:5432
|
||||
Volume=gitea-db-data.volume:/var/lib/postgresql/data:Z
|
||||
|
||||
[Service]
|
||||
Restart=no
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target default.target
|
||||
|
||||
# podman pull docker.io/library/postgres:14
|
||||
# systemctl --user daemon-reload
|
||||
# systemctl --user start gitea-db
|
||||
# systemctl --user status gitea-db
|
||||
# journalctl -fu gitea-db.service
|
||||
# podman logs gitea-db
|
||||
# systemctl --user stop gitea-db
|
||||
# systemctl --user disable gitea-db
|
||||
# podman exec -ti gitea-db /bin/sh
|
||||
# podman exec -ti gitea-db /bin/bash
|
Reference in New Issue
Block a user