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