jieguolove commented on issue #3073:
URL: https://github.com/apache/hugegraph/issues/3073#issuecomment-4829095810
docker下有这个文件init_complete,持久化这个目录了启动了还是不行呢。
(base) [root@lnpg hugegraph]# cat docker-compose.yml
services:
server:
image: hugegraph/hugegraph:1.5.0
container_name: hugegraph
security_opt:
- seccomp=unconfined
mem_limit: 8g
environment:
# - PRELOAD=true
- JAVA_OPTS=-Xms2048m -Xmx2048m -XX:+UseG1GC
ports:
- "8080:8080"
volumes:
- /db/hugegraph/rocksdb-data:/hugegraph-server/rocksdb-data
- /db/hugegraph/logs:/hugegraph-server/logs
- /db/hugegraph/docker:/hugegraph-server/docker
hubble:
image: hugegraph/hubble:1.5.0
container_name: hubble
depends_on:
- server
ports:
- "8088:8088"
environment:
- HUGE_GRAPH_HOST=server
- HUGE_GRAPH_PORT=8080
(base) [root@lnpg hugegraph]# docker compose down
(base) [root@lnpg hugegraph]# docker compose up -d
[+] Running 2/3
[+] Running 3/3graph_default Created
0.0s
✔ Network hugegraph_default Created
0.0s
✔ Container hugegraph Started
1.3s
✔ Container hubble Started
1.2s
(base) [root@lnpg hugegraph]#
(base) [root@lnpg hugegraph]#
(base) [root@lnpg hugegraph]#
(base) [root@lnpg hugegraph]# docker compose down
[+] Running 3/3
✔ Container hubble Removed
10.2s
✔ Container hugegraph Removed
0.2s
✔ Network hugegraph_default Removed
0.1s
(base) [root@lnpg hugegraph]# docker compose up -d
[+] Running 3/3
✔ Network hugegraph_default Created
0.0s
✔ Container hugegraph Started
0.8s
✔ Container hubble Started
0.6s
(base) [root@lnpg hugegraph]# docker exec hugegraph ls -lat
/hugegraph-server/docker
total 0
drwxr-xr-x 12 root root 221 Jun 29 04:48 ..
drwxr-xr-x 2 root root 35 Jun 29 04:43 .
-rw-r--r-- 1 root root 0 Jun 29 04:43 init_complete
(base) [root@lnpg hugegraph]# docker exec hugegraph cat
/hugegraph-server/docker
cat: /hugegraph-server/docker: Is a directory
(base) [root@lnpg hugegraph]# docker exec hugegraph cat
/hugegraph-server/docker/init_complete
(base) [root@lnpg hugegraph]#
--
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]