Skip to content

Commit

Permalink
Fix scylla compose file, add volumes + logging
Browse files Browse the repository at this point in the history
  • Loading branch information
at055612 committed Jun 14, 2024
1 parent 649f43f commit 260227a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion dev-resources/compose/containers/scylladb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,26 @@
version: '2.4'

services:

scylladb:
image: "${SCYLLA_DB_DOCKER_REPO:-scylladb/scylla}:${SCYLLA_DB_TAG:-5.4.7}"
hostname: scylladb
container_name: scylladb
ports:
- 9042:9042
volumes:
- type: volume
source: scylladb_data
target: /var/lib/scylla/data
- type: volume
source: scylladb_commitlog
target: /var/lib/scylla/commitlog
logging:
driver: "json-file"
options:
max-size: "${SCYLLADB_STD_OUT_LOGS_MAX_SIZE:-10m}"
max-file: "${SCYLLADB_STD_OUT_LOGS_MAX_FILES:-2}"
labels:
- "stack_name=${STACK_NAME:-<STACK_NAME>}"
volumes:
scylladb_data:
scylladb_commitlog:

0 comments on commit 260227a

Please sign in to comment.