php4dvd: Initial version of role

This commit is contained in:
Timo Makinen 2023-08-20 14:34:11 +00:00
parent 946c7d0772
commit f664e0271b
5 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,19 @@
[Unit]
Description=php4dvd Container
Wants=network-online.target
After=network-online.target
[Service]
User=php4dvd
EnvironmentFile=/etc/sysconfig/php4dvd-container
ExecStart=/usr/bin/podman run \
--rm -p 127.0.0.1:8005:80 \
--name php4dvd \
--env PHP4DVD_* \
--volume /export/volumes/php4dvd:/var/www/html/movies:rw,Z \
php4dvd:latest
ExecStop=/usr/bin/podman stop --ignore php4dvd
ExecStopPost=/usr/bin/podman rm -f --ignore php4dvd
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,5 @@
PHP4DVD_DB_HOST=sqldb02.home.foo.sh
PHP4DVD_DB_NAME=php4dvd
PHP4DVD_DB_USER=php4dvd
PHP4DVD_DB_PASS={{ php4dvd_mysql_pass }}
PHP4DVD_USER_GUESTVIEW=true