You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
2.9 KiB
109 lines
2.9 KiB
3 years ago
|
version: '3.8'
|
||
|
services:
|
||
|
cratedb01:
|
||
|
container_name: crate1
|
||
|
image: crate:latest
|
||
|
ports:
|
||
|
- "4201:4200"
|
||
|
# volumes:
|
||
|
# - /tmp/crate/01:/data
|
||
|
command: ["crate",
|
||
|
"-Ccluster.name=crate-docker-cluster",
|
||
|
"-Cnode.name=cratedb01",
|
||
|
"-Cnode.data=true",
|
||
|
"-Cnetwork.host=_eth0_",
|
||
|
"-Cdiscovery.seed_hosts=cratedb02,cratedb03",
|
||
|
"-Ccluster.initial_master_nodes=cratedb01,cratedb02,cratedb03",
|
||
|
"-Cgateway.expected_nodes=3",
|
||
|
"-Cgateway.recover_after_nodes=2",
|
||
|
"-Ccluster.routing.allocation.disk.threshold_enabled=false"]
|
||
|
deploy:
|
||
|
replicas: 1
|
||
|
restart_policy:
|
||
|
condition: on-failure
|
||
|
resources:
|
||
|
limits:
|
||
|
cpus: '1'
|
||
|
memory: 3g
|
||
|
environment:
|
||
|
- CRATE_HEAP_SIZE=2g
|
||
|
networks:
|
||
|
crate:
|
||
|
ipv4_address: 172.70.0.71
|
||
|
|
||
|
cratedb02:
|
||
|
container_name: crate2
|
||
|
image: crate:latest
|
||
|
ports:
|
||
|
- "4202:4200"
|
||
|
# volumes:
|
||
|
# - /tmp/crate/02:/data
|
||
|
command: ["crate",
|
||
|
"-Ccluster.name=crate-docker-cluster",
|
||
|
"-Cnode.name=cratedb02",
|
||
|
"-Cnode.data=true",
|
||
|
"-Cnetwork.host=_eth0_",
|
||
|
"-Cdiscovery.seed_hosts=cratedb01,cratedb03",
|
||
|
"-Ccluster.initial_master_nodes=cratedb01,cratedb02,cratedb03",
|
||
|
"-Cgateway.expected_nodes=3",
|
||
|
"-Cgateway.recover_after_nodes=2",
|
||
|
"-Ccluster.routing.allocation.disk.threshold_enabled=false"]
|
||
|
deploy:
|
||
|
replicas: 1
|
||
|
restart_policy:
|
||
|
condition: on-failure
|
||
|
resources:
|
||
|
limits:
|
||
|
cpus: '1'
|
||
|
memory: 3g
|
||
|
environment:
|
||
|
- CRATE_HEAP_SIZE=2g
|
||
|
networks:
|
||
|
crate:
|
||
|
ipv4_address: 172.70.0.72
|
||
|
|
||
|
cratedb03:
|
||
|
container_name: crate3
|
||
|
image: crate:latest
|
||
|
ports:
|
||
|
- "4203:4200"
|
||
|
# volumes:
|
||
|
# - /tmp/crate/03:/data
|
||
|
command: ["crate",
|
||
|
"-Ccluster.name=crate-docker-cluster",
|
||
|
"-Cnode.name=cratedb03",
|
||
|
"-Cnode.data=true",
|
||
|
"-Cnetwork.host=_eth0_",
|
||
|
"-Cdiscovery.seed_hosts=cratedb01,cratedb02",
|
||
|
"-Ccluster.initial_master_nodes=cratedb01,cratedb02,cratedb03",
|
||
|
"-Cgateway.expected_nodes=3",
|
||
|
"-Cgateway.recover_after_nodes=2",
|
||
|
"-Ccluster.routing.allocation.disk.threshold_enabled=false"]
|
||
|
deploy:
|
||
|
replicas: 1
|
||
|
restart_policy:
|
||
|
condition: on-failure
|
||
|
resources:
|
||
|
limits:
|
||
|
cpus: '1'
|
||
|
memory: 3g
|
||
|
environment:
|
||
|
- CRATE_HEAP_SIZE=2g
|
||
|
networks:
|
||
|
crate:
|
||
|
ipv4_address: 172.70.0.73
|
||
|
|
||
|
# crash:
|
||
|
# image: crash aptosretail/cratedb-crash
|
||
|
# ports:
|
||
|
# - "4204"
|
||
|
# networks:
|
||
|
# crate:
|
||
|
# ipv4_address: 172.70.0.74
|
||
|
|
||
|
networks:
|
||
|
crate:
|
||
|
ipam:
|
||
|
driver: default
|
||
|
config:
|
||
|
- subnet: 172.70.0.0/24
|