quay-pg.service 915 B

1234567891011121314151617181920212223242526272829
  1. [Unit]
  2. Description=Quay PostgreSQL Container
  3. Wants=network-online.target
  4. After=network-online.target
  5. [Service]
  6. Restart=on-failure
  7. TimeoutStopSec=30
  8. ExecStartPre=/usr/bin/podman rm --ignore -f postgresql
  9. ExecStart=/usr/bin/podman run \
  10. --conmon-pidfile %t/%n-pid \
  11. --cidfile %t/%n-cid \
  12. --cgroups=no-conmon \
  13. --name=postgresql -d \
  14. --network=quay \
  15. -v /local/quay-pg:/var/lib/pgsql/data:Z \
  16. -e POSTGRESQL_USER=quay \
  17. -e POSTGRESQL_PASSWORD=secret \
  18. -e POSTGRESQL_DATABASE=quay \
  19. -e POSTGRESQL_ADMIN_PASSWORD=verysecret \
  20. registry.redhat.io/rhel9/postgresql-15:latest
  21. ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%n-cid -t 30 && \
  22. /bin/rm -f %t/%n-pid %t/%n-cid
  23. Type=forking
  24. PIDFile=%t/%n-pid
  25. KillMode=none
  26. [Install]
  27. WantedBy=default.target