[Unit] Description=PostgreSQL Database Server - Pod Documentation=https://hub.docker.com/_/postgres/ After=network.target Before=postgresql.target # Only start if PostgreSQL has been configured ConditionPathExists=/etc/quadlets/postgresql/config.env # Start/stop this unit when the target is started/stopped PartOf=postgresql.target [Pod] PodName=postgresql [Install] WantedBy=postgresql.target