changed container name and restructured file
This commit is contained in:
@@ -1,20 +1,20 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
container_name: searxng
|
|
||||||
image: searxng/searxng:${SEARXNG_VERSION:-latest}
|
image: searxng/searxng:${SEARXNG_VERSION:-latest}
|
||||||
|
container_name: searxng-app
|
||||||
volumes:
|
volumes:
|
||||||
- /home/${SEARXNG_USERNAME:-searxng}/searxng/config:/etc/searxng:rw
|
- /home/${SEARXNG_USERNAME:-searxng}/searxng/config:/etc/searxng:rw
|
||||||
- /home/${SEARXNG_USERNAME:-searxng}/searxng/cache:/var/cache/searxng
|
- /home/${SEARXNG_USERNAME:-searxng}/searxng/cache:/var/cache/searxng
|
||||||
ports:
|
ports:
|
||||||
- ${SEARXNG_PORT:-8080}:8080
|
- ${SEARXNG_PORT:-8080}:8080
|
||||||
deploy:
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 512m
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-q", "--spider", "--proxy=off", "http://localhost:8080/healthz"]
|
test: ["CMD", "wget", "-q", "--spider", "--proxy=off", "http://localhost:8080/healthz"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 512m
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user