Skip to content

Commit

Permalink
debug permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
haobibo committed Nov 20, 2024
1 parent 9457b2d commit c8fe941
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions docker_searxng/demo/docker-compose.searxng-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ services:
networks:
- net-searxng
ports:
- "81:81"
- "8000:8000"
# volumes:
# - ./searxng/settings.yml:/etc/searxng/settings.yml:rw
# - ./searxng/limiter.toml:/etc/searxng/limiter.toml:rw
# - ./searxng/Caddyfile:/etc/searxng/Caddyfile:rw
# - ./searxng/supervisord.conf:/etc/searxng/supervisord.conf:rw
environment:
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost:81}/
- SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-http://localhost:81}
- SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost:8000}/
- SEARXNG_HOSTNAME=${SEARXNG_HOSTNAME:-http://localhost:8000}
- SEARXNG_TLS=${LETSENCRYPT_EMAIL:-internal}
- UWSGI_WORKERS=${SEARXNG_UWSGI_WORKERS:-4}
- UWSGI_THREADS=${SEARXNG_UWSGI_THREADS:-4}
# user: searxng
# command: ["/opt/searxng/start-supervisord.sh"]
# command: ["tail", "-f", "/dev/null"]
cap_drop: ["ALL"]
cap_add: ["CHOWN", "SETGID", "SETUID", "NET_BIND_SERVICE"]
logging:
Expand Down
6 changes: 4 additions & 2 deletions docker_searxng/searxng.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ RUN set -eux \
# Clean up and display components version information...
&& fix_permission searxng /opt/searxng/ \
&& chmod +x /opt/searxng/*.sh \
&& chmod -R ugo+rws /var/log \
&& list_installed_packages && install__clean

ENV SEARXNG_HOSTNAME="http://localhost:80"
ENV SEARXNG_HOSTNAME="http://localhost:8000"
ENV SEARXNG_TLS=internal

ENV SEARXNG_BASE_URL=https://${SEARXNG_HOSTNAME:-localhost}/
Expand All @@ -50,4 +51,5 @@ ENTRYPOINT ["tini", "-g", "--"]
SHELL ["/bin/bash", "--login", "-o", "pipefail", "-c"]
WORKDIR /opt/searxng
CMD ["/opt/searxng/start-supervisord.sh"]
EXPOSE 8080 9001 80
EXPOSE 8080 9001 8000
USER searxng

0 comments on commit c8fe941

Please sign in to comment.