38 lines
1.3 KiB
Desktop File
38 lines
1.3 KiB
Desktop File
[Unit]
|
|
Description=Podman %n
|
|
Documentation=man:podman-generate-systemd(1)
|
|
Wants=network.target
|
|
After=network-online.target
|
|
BindsTo=pod-database.service pod-database-postgres.service
|
|
After=pod-database.service pod-database-postgres.service
|
|
OnFailure=status-mail@%n.service
|
|
|
|
[Service]
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
Restart=on-failure
|
|
TimeoutStopSec=70
|
|
ExecStartPre=/bin/rm -f %t/%N.pid %t/%N.ctr-id
|
|
ExecStart=/usr/bin/podman run \
|
|
--conmon-pidfile %t/%N.pid \
|
|
--cidfile %t/%N.ctr-id \
|
|
--cgroups=no-conmon \
|
|
--pod-id-file %t/pod-database.pod-id \
|
|
--replace \
|
|
--label "io.containers.autoupdate=image" \
|
|
--log-driver=journald \
|
|
-dt \
|
|
-v {{ system_etc_root_directory }}/resolv.conf:/etc/resolv.conf:ro \
|
|
-v {{ services_data_directory }}/pod-database/pgadmin/_data:/var/lib/pgadmin:U \
|
|
-v ./.config/service/pgadmin.password:/run/secrets/pgadmin.password:U,ro \
|
|
-e PGADMIN_DEFAULT_EMAIL="{{ services[services_service_name].pgadmin.email }}" \
|
|
-e PGADMIN_DEFAULT_PASSWORD_FILE=/run/secrets/pgadmin.password \
|
|
--name=%N \
|
|
docker.io/dpage/pgadmin4:{{ services_service_deploy_versions.pgadmin4 }}
|
|
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%N.ctr-id -t 10
|
|
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%N.ctr-id
|
|
PIDFile=%t/%N.pid
|
|
Type=forking
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target default.target
|