Initial commit
This commit is contained in:
commit
b16f2585c7
19 changed files with 690 additions and 0 deletions
17
templates/sentry.systemd.j2
Normal file
17
templates/sentry.systemd.j2
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# {{ 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
|
||||
Reference in a new issue