Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/development/elasticsearch/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,20 @@ services:
deploy:
labels:
- dargstack.profiles=zammad
resources:
limits:
memory: 1536m
reservations:
memory: 512m
environment:
bootstrap.memory_lock: "true"
discovery.type: single-node
ELASTIC_PASSWORD_FILE: /run/secrets/elasticsearch-password
ES_JAVA_OPTS: -Xms1g -Xmx1g
ES_JAVA_OPTS: -Xms512m -Xmx512m
# The helpdesk sends bulk requests that exceed the 100mb default while it rebuilds its search index.
http.max_content_length: 400mb
KEYSTORE_PASSWORD_FILE: /run/secrets/elasticsearch-keystore-password
xpack.ml.enabled: "false"
healthcheck:
test: ["CMD-SHELL", "NETRC=$$(mktemp) && printf 'machine localhost\\nlogin elastic\\npassword %s\\n' \"$$(cat /run/secrets/elasticsearch-password)\" > \"$$NETRC\" && curl -fsS --netrc-file \"$$NETRC\" --cacert /usr/share/elasticsearch/config/certs/http_ca.crt 'https://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=5s' && rm -f \"$$NETRC\" || { rm -f \"$$NETRC\"; exit 1; }"]
interval: 30s
Expand Down
15 changes: 12 additions & 3 deletions src/development/redpanda/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ services:
# You can access the event streaming platform's ui as described under `redpanda-console`.
command:
- redpanda start
- --mode dev-container # dargstack:dev-only
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --advertise-kafka-addr internal://redpanda:9092,external://localhost:19092
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --advertise-pandaproxy-addr internal://redpanda:8082,external://localhost:18082
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092
- --memory 512M
- --mode dev-container # dargstack:dev-only
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082
- --reserve-memory 0M
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081
- --smp 1
deploy:
labels:
- dargstack.profiles=event-streaming
resources:
limits:
cpus: '1.0'
memory: 1024M
reservations:
memory: 512M
healthcheck:
test: ["CMD", "rpk", "cluster", "health", "--exit-when-healthy"]
interval: 30s
Expand Down
Loading