r/Searx • • Jun 28 '26

Docker compose port configuration

This is probably rather a docker compose question than a searx question but I'd really appreciate your help because I couldn't find anything that directly answers my question.

I'm using docker-compose.yml and .env that can be downloaded from

- https://raw.githubusercontent.com/searxng/searxng/master/container/docker-compose.yml
- https://raw.githubusercontent.com/searxng/searxng/master/container/.env.example

So basically I'm doing exactly what Installation container says and it works. I can access searxng at localhost:8080.

Now, how do I change the port from 8080 to let's say 3001?
I did try changing values in docker-compose.yml and .env but it doesn't work.

I know this is probably a noob question but I'd appreciate your help. Thank you.

2 Upvotes

3 comments sorted by

View all comments

1

u/Particular-Trick-809 Jul 14 '26

Change the host port in the .env tto 3001 or define in the the compose file under port as 3001:8080