mirror of
https://github.com/searx/searx-docker.git
synced 2024-11-22 01:52:31 +01:00
working searx-docker.service
This commit is contained in:
parent
86f1f7e22d
commit
518650fc80
@ -1,4 +1,4 @@
|
||||
<[Unit]
|
||||
[Unit]
|
||||
Description=searx service
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
@ -6,12 +6,11 @@ After=docker.service
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
Environment=SEARX_DIR=/usr/local/searx-docker
|
||||
Environment=SEARX_DOCKERCOMPOSEFILE=docker-compose.yaml
|
||||
|
||||
WorkingDirectory=/usr/local/searx-docker
|
||||
|
||||
ExecStart=/bin/sh -c "start.sh"
|
||||
ExecStop=/bin/sh -c "stop.sh"
|
||||
ExecStart=/bin/sh -c "${SEARX_DIR}/start.sh"
|
||||
ExecStop=/bin/sh -c "${SEARX_DIR}/stop.sh"
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
3
start.sh
3
start.sh
@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
|
||||
cd -- "$BASE_DIR"
|
||||
|
||||
. ./util.sh
|
||||
|
||||
if grep -q "MORTY_KEY=RemplaceWithARealKey!" .env; then
|
||||
|
3
stop.sh
3
stop.sh
@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
BASE_DIR="$(dirname -- "`readlink -f -- "$0"`")"
|
||||
cd -- "$BASE_DIR"
|
||||
|
||||
. ./util.sh
|
||||
|
||||
$DOCKERCOMPOSE -f $DOCKERCOMPOSEFILE down -v
|
||||
|
Loading…
Reference in New Issue
Block a user