-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (97 loc) · 3.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Copyright 2019 JanusGraph Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# janusgraph.schema.constraints: true
# janusgraph.schema.default: none
version: '3'
services:
redis-cluster:
image: redis:6.2
container_name: redis-test
volumes: # 작성한 설정 파일을 볼륨을 통해 컨테이너에 공유
- ./docker-init/redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- 6380:6380
- 6381:6381
- 6379:6379
redis-node-1:
network_mode: 'service:redis-cluster'
image: redis:6.2
container_name: redis-test1
volumes:
- ./docker-init/redis/redis1.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
redis-node-2:
network_mode: 'service:redis-cluster'
image: redis:6.2
container_name: redis-test2
volumes:
- ./docker-init/redis/redis2.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
redis-cluster-entry:
network_mode: 'service:redis-cluster'
image: redis:6.2
container_name: redis-cluster-entry
command: redis-cli --cluster create 127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381 --cluster-yes
depends_on:
- redis-cluster
- redis-node-1
- redis-node-2
networks:
development-network:
volumes:
default-data:
# janusgraph:
# image: docker.io/janusgraph/janusgraph:latest
# container_name: jce-janusgraph
# environment:
# JANUS_PROPS_TEMPLATE: cql-es
# janusgraph.storage.hostname: jce-cassandra
# janusgraph.index.search.hostname: jce-elastic
# ports:
# - '8182:8182'
# networks:
# - jce-network
# healthcheck:
# test: ['CMD', 'bin/gremlin.sh', '-e', 'scripts/remote-connect.groovy']
# interval: 10s
# timeout: 30s
# retries: 3
# cassandra:
# image: cassandra:3
# container_name: jce-cassandra
# ports:
# - '9042:9042'
# - '9160:9160'
# networks:
# - jce-network
# elasticsearch:
# image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0
# container_name: jce-elastic
# environment:
# - 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
# - 'http.host=0.0.0.0'
# - 'network.host=0.0.0.0'
# - 'transport.host=127.0.0.1'
# - 'cluster.name=docker-cluster'
# - 'xpack.security.enabled=false'
# - 'discovery.zen.minimum_master_nodes=1'
# ports:
# - '9200:9200'
# networks:
# - jce-network
# networks:
# jce-network:
# volumes:
# janusgraph-default-data: