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.
 
 
 
 
 
 

115 lines
3.0 KiB

version: '3.8'
services:
cratedb01:
container_name: crate1
image: crate:latest
ports:
- "4201:4200"
volumes:
- 'crate01-volume:/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: '6'
memory: 20g
environment:
- CRATE_HEAP_SIZE=10g
networks:
crate:
ipv4_address: 172.70.0.71
cratedb02:
container_name: crate2
image: crate:latest
ports:
- "4202:4200"
volumes:
- 'crate02-volume:/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: '6'
memory: 20g
environment:
- CRATE_HEAP_SIZE=10g
networks:
crate:
ipv4_address: 172.70.0.72
cratedb03:
container_name: crate3
image: crate:latest
ports:
- "4203:4200"
volumes:
- 'crate03-volume:/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: '6'
memory: 20g
environment:
- CRATE_HEAP_SIZE=10g
networks:
crate:
ipv4_address: 172.70.0.73
# crash:
# image: crash aptosretail/cratedb-crash
# ports:
# - "4204"
# networks:
# crate:
# ipv4_address: 172.70.0.74
volumes:
crate01-volume:
name: crate01-data
crate02-volume:
name: crate02-data
crate03-volume:
name: crate03-data
networks:
crate:
ipam:
driver: default
config:
- subnet: 172.70.0.0/24