add unit files
This commit is contained in:
parent
7f2eb7ec65
commit
38a2de5858
5 changed files with 142 additions and 4 deletions
46
deploy/systemd/container-futtern-php.service
Normal file
46
deploy/systemd/container-futtern-php.service
Normal file
|
@ -0,0 +1,46 @@
|
|||
# container-futtern-php.service
|
||||
# autogenerated by Podman 4.3.1
|
||||
# Sun Jun 23 05:33:51 UTC 2024
|
||||
|
||||
[Unit]
|
||||
Description=Podman container-futtern-php.service
|
||||
Documentation=man:podman-generate-systemd(1)
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
RequiresMountsFor=%t/containers
|
||||
BindsTo=pod-futtern.service
|
||||
After=pod-futtern.service
|
||||
|
||||
[Service]
|
||||
Environment=PODMAN_SYSTEMD_UNIT=%n
|
||||
Restart=on-failure
|
||||
TimeoutStopSec=70
|
||||
ExecStartPre=/bin/rm \
|
||||
-f %t/%n.ctr-id
|
||||
ExecStart=/usr/bin/podman run \
|
||||
--cidfile=%t/%n.ctr-id \
|
||||
--cgroups=no-conmon \
|
||||
--rm \
|
||||
--pod-id-file %t/pod-futtern.pod-id \
|
||||
--sdnotify=conmon \
|
||||
--replace \
|
||||
-d \
|
||||
--name futtern-php \
|
||||
--volume /home/c3h-futtern/etc/php83/php-fpm.d/www.conf:/etc/php83/php-fpm.d/www.conf \
|
||||
--volume /home/c3h-futtern/futtern-app:/var/www/html \
|
||||
--volume /home/c3h-futtern/var:/var/www/html/var \
|
||||
--env APP_ENV=prod \
|
||||
--env APP_SECRET=UwUtHiSisNotSecurePlZcHanGeMe \
|
||||
git.php.fail/lubiana/container/php:8.3-fpm
|
||||
ExecStop=/usr/bin/podman stop \
|
||||
--ignore -t 10 \
|
||||
--cidfile=%t/%n.ctr-id
|
||||
ExecStopPost=/usr/bin/podman rm \
|
||||
-f \
|
||||
--ignore -t 10 \
|
||||
--cidfile=%t/%n.ctr-id
|
||||
Type=notify
|
||||
NotifyAccess=all
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Add table
Add a link
Reference in a new issue