This commit is contained in:
2025-01-31 19:39:53 -07:00
parent 1c0b573f60
commit cf6e52b572
47 changed files with 798 additions and 31 deletions

View 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