mirror of
https://github.com/searxng/searxng-docker.git
synced 2026-07-28 19:01:27 +00:00
Update documentation
This commit is contained in:
22
searx-docker.service
Normal file
22
searx-docker.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user