|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +version: "3" |
| 19 | + |
| 20 | +services: |
| 21 | + graph: |
| 22 | + image: hugegraph/hugegraph |
| 23 | + container_name: cas-graph |
| 24 | + ports: |
| 25 | + - 18080:8080 |
| 26 | + environment: |
| 27 | + hugegraph.backend: cassandra |
| 28 | + hugegraph.serializer: cassandra |
| 29 | + hugegraph.cassandra.host: cas-cassandra |
| 30 | + hugegraph.cassandra.port: 9042 |
| 31 | + networks: |
| 32 | + - ca-network |
| 33 | + depends_on: |
| 34 | + - cassandra |
| 35 | + healthcheck: |
| 36 | + test: ["CMD", "bin/gremlin-console.sh", "--" ,"-e", "scripts/remote-connect.groovy"] |
| 37 | + interval: 10s |
| 38 | + timeout: 30s |
| 39 | + retries: 3 |
| 40 | + |
| 41 | + cassandra: |
| 42 | + image: cassandra:4 |
| 43 | + container_name: cas-cassandra |
| 44 | + ports: |
| 45 | + - 7000:7000 |
| 46 | + - 9042:9042 |
| 47 | + security_opt: |
| 48 | + - seccomp:unconfined |
| 49 | + networks: |
| 50 | + - ca-network |
| 51 | + healthcheck: |
| 52 | + test: ["CMD", "cqlsh", "--execute", "describe keyspaces;"] |
| 53 | + interval: 10s |
| 54 | + timeout: 30s |
| 55 | + retries: 5 |
| 56 | + |
| 57 | +networks: |
| 58 | + ca-network: |
| 59 | + |
| 60 | +volumes: |
| 61 | + hugegraph-data: |
0 commit comments