deploy_adguard/templates/adguard.service.j2

13 lines
427 B
Plaintext
Raw Normal View History

2023-05-28 22:06:27 +00:00
[Unit]
2023-06-01 21:02:50 +00:00
Description=Free and open source, powerful network-wide ads & trackers blocking DNS server.
2023-05-28 22:06:27 +00:00
After=docker.service
Requires=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
2023-06-01 21:02:50 +00:00
ExecStart=/bin/bash -c "docker-compose -f {{ deploy_adguard_directory }}/docker-compose.yml up --detach"
ExecStop=/bin/bash -c "docker-compose -f {{ deploy_adguard_directory }}/docker-compose.yml down"
2023-05-28 22:06:27 +00:00
[Install]
WantedBy=multi-user.target