# user systemd — Castopod web (depends on MariaDB + Redis)
[Unit]
Description=Castopod web (koopa-castopod)
Wants=network-online.target container-koopa-castopod-mariadb.service container-koopa-castopod-redis.service
After=network-online.target container-koopa-castopod-mariadb.service container-koopa-castopod-redis.service
RequiresMountsFor=%t/containers

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
RestartSec=20
TimeoutStartSec=300
TimeoutStopSec=120
WorkingDirectory=/home/hernani/koopa-castopod
ExecStart=/usr/bin/podman-compose up -d castopod
ExecStop=/usr/bin/podman stop -t 30 koopa-castopod
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=default.target
