1
0
mirror of https://github.com/searx/searx-docker.git synced 2024-11-23 02:22:35 +01:00
searx-docker/searx-docker.service
2019-07-06 15:32:50 +02:00

23 lines
477 B
Desktop File

[Unit]
Description=searx-docker service
Requires=docker.service
After=docker.service
[Service]
Restart=always
WorkingDirectory=/opt/searx-docker/
# Remove old containers, images and volumes
ExecStartPre=/usr/local/bin/docker-compose down -v
ExecStartPre=/usr/local/bin/docker-compose rm -fv
# Compose up
ExecStart=/usr/bin/docker-compose up
# Compose down, remove containers and volumes
ExecStop=/usr/local/bin/docker-compose down -v
[Install]
WantedBy=multi-user.target