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.
43 lines
984 B
43 lines
984 B
3 years ago
|
version: '3.8'
|
||
|
services:
|
||
|
cratedb01:
|
||
|
container_name: crate1
|
||
|
image: crate:latest
|
||
|
ports:
|
||
|
- "4201:4200"
|
||
|
volumes:
|
||
|
- 'crate01-volume:/data'
|
||
|
# volumes:
|
||
|
# - /tmp/crate/01:/data
|
||
|
command: ["crate",
|
||
|
"-Ccluster.name=crate-docker-cluster",
|
||
|
"-Cnode.name=cratedb01",
|
||
|
"-Cnode.data=true",
|
||
|
"-Cnetwork.host=_eth0_",
|
||
|
"-Ccluster.initial_master_nodes=cratedb01",
|
||
|
"-Cgateway.expected_nodes=1",
|
||
|
"-Ccluster.routing.allocation.disk.threshold_enabled=false"]
|
||
|
deploy:
|
||
|
replicas: 1
|
||
|
restart_policy:
|
||
|
condition: on-failure
|
||
|
resources:
|
||
|
limits:
|
||
|
cpus: '1'
|
||
|
memory: 60g
|
||
|
environment:
|
||
|
- CRATE_HEAP_SIZE=15g
|
||
|
networks:
|
||
|
crate:
|
||
|
ipv4_address: 172.70.0.71
|
||
|
|
||
|
volumes:
|
||
|
crate01-volume:
|
||
|
name: crate01-data
|
||
|
networks:
|
||
|
crate:
|
||
|
ipam:
|
||
|
driver: default
|
||
|
config:
|
||
|
- subnet: 172.70.0.0/24
|