Setup for Docker
Prerequisites
- Docker: Ensure Docker is installed on your system.
- Installation instructions: https://docs.docker.com/get-docker/
Building the Docker Image
-
Clone the repository:
git clone https://weforge.xyz/Spitfire/Search.git cd Search
-
Build the Docker image:
docker build -t qgato .
Running the Container
Using Command-Line Flags
You can pass configuration options directly as environment variables when running the container:
-
Run the container with flags for
PORT
andDOMAIN
:docker run -d -p 5000:5000 --name qgato \ -e PORT=5000 \ -e DOMAIN=localhost \ qgato
-
Access the application at:
http://localhost:5000
Using a Pre-Configured config.ini
-
Modify or create the
config.ini
file in the cloned repository to include your desired settings. -
Mount the
config.ini
file into the container:docker run -d -p 5000:5000 --name qgato \ -v $(pwd)/config.ini:/home/myuser/Search/config.ini \ qgato
This method avoids the need to pass environment variables as flags during runtime.
Exposed Port
The application listens on port 5000
by default. You can map it to any port on your host system using the -p
flag during docker run
.
Stopping and Removing the Container
-
Stop the container:
docker stop qgato
-
Remove the container:
docker rm qgato
That's it! Your QGato instance is now running inside a Docker container.
Navigation
Repository | Demo | License