quay.service.j2 805 B

123456789101112131415161718192021222324252627
  1. [Unit]
  2. Description=Quay Container
  3. Wants=network-online.target,quay-pg.service,quay-redis.service
  4. After=network-online.target
  5. [Service]
  6. Restart=on-failure
  7. TimeoutStopSec=30
  8. ExecStartPre=/usr/bin/podman rm --ignore -f quay
  9. ExecStart=/usr/bin/podman run \
  10. --conmon-pidfile %t/%n-pid \
  11. --cidfile %t/%n-cid \
  12. --cgroups=no-conmon \
  13. --name=quay -d \
  14. --network=quay \
  15. -p 80:8080 -p 443:8443 \
  16. -v ./config:/conf/stack:Z \
  17. -v /local/quay:/registry:Z \
  18. {{ registry_host }}/quay/quay-rhel8:v3.15
  19. ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%n-cid -t 30 && \
  20. /bin/rm -f %t/%n-pid %t/%n-cid
  21. Type=forking
  22. PIDFile=%t/%n-pid
  23. KillMode=none
  24. [Install]
  25. WantedBy=default.target