20 lines
437 B
Text
20 lines
437 B
Text
|
{% import './templates/systemd.j2' as systemd %}
|
||
|
|
||
|
{{ systemd.service() }}
|
||
|
|
||
|
[Unit]
|
||
|
Description={{ env_dict.service_name }} (docker compose'd thing)
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
RemainAfterExit=true
|
||
|
WorkingDirectory={{ env_dict.working_directory }}
|
||
|
ExecStart=/usr/bin/docker-compose up -d --remove-orphans
|
||
|
ExecStop=/usr/bin/docker-compose down
|
||
|
|
||
|
{{ systemd.service_security() }}
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|