This repository has been archived on 2025-04-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
sentry/templates/sentry.systemd.j2
2021-01-31 23:32:33 +01:00

17 lines
384 B
Django/Jinja

# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
#
[Unit]
Description=Sentry
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
User={{ app_user }}
ExecStart=/usr/local/bin/docker-compose up --detach
ExecStop=/usr/local/bin/docker-compose down
WorkingDirectory={{ app_dir }}
[Install]
WantedBy=multi-user.target