[Unit]
Description=Productier restore drill job
After=docker.service
Requires=docker.service

[Service]
Type=oneshot
WorkingDirectory=/opt/productier
EnvironmentFile=-/opt/productier/.env.production
Environment=DRILL_CLEANUP_ON_EXIT=1
Environment=DRILL_NOTIFY_ON_SUCCESS=1
ExecStart=/usr/bin/env bash -lc '/opt/productier/scripts/ops/staging-drill.sh /opt/productier/.env.production latest /opt/productier/backups'
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
