dosubot[bot] commented on issue #2667:
URL:
https://github.com/apache/incubator-hugegraph/issues/2667#issuecomment-2379665210
<!-- Answer -->
To run HugeGraph in standalone mode using Docker after building it locally,
follow these steps:
1. **Build the Docker image**:
Ensure you are in the directory containing the `Dockerfile` and run the
following command to build the Docker image:
```sh
docker build -t hugegraph-pd .
```
2. **Run the Docker container**:
Once the image is built, you can run the container in standalone mode
using the following command:
```sh
docker run -itd --name=graph -p 8080:8080 hugegraph-pd
```
This command will start the HugeGraph server in a Docker container, exposing
port 8080 for access. The `docker-entrypoint.sh` script will be executed as
specified in the `Dockerfile`.
Alternatively, you can use Docker Compose to manage the deployment:
1. Create a `docker-compose.yaml` file with the following content:
```yaml
version: '3'
services:
graph:
image: hugegraph-pd
ports:
- 8080:8080
```
2. Run the following command to start the HugeGraph server:
```sh
docker-compose up -d
```
This will start the HugeGraph server and manage other HugeGraph-related
instances if needed
<sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-pd/Dockerfile)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/docker/README.md)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]