Skip to content

Commit

Permalink
Update compose.yaml to take cassandra config properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad45123 authored May 17, 2024
1 parent 7f8ad60 commit 2d21637
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
# Simulates a network etc.
version: '3.7'

configs:
jobs_cassandra_config:
file: ./services/jobs/cassandra-config/cassandra.yaml

services:
# ----- GENERAL SERVICES -------
service_webserver:
Expand Down Expand Up @@ -68,8 +72,9 @@ services:

jobs_db:
image: cassandra:4.0.7
volumes:
- ./services/jobs/cassandra-config/cassandra.yaml:/etc/cassandra/cassandra.yaml
configs:
- source: jobs_cassandra_config
target: /etc/cassandra/cassandra.yaml
healthcheck:
test: [ "CMD", "cqlsh", "-e", "describe keyspaces" ]
interval: 20s
Expand Down

0 comments on commit 2d21637

Please sign in to comment.