samagra-comms / docker-deploy

1 stars 15 forks source link

Cassandra password is not being picked from .env #40

Closed devAyushDubey closed 1 year ago

devAyushDubey commented 1 year ago

The official image of cassandra does not have a defined mechanism for changing the default user password through environment variables I am looking at two ways we can solve this issue:

  1. Keep using the official image of cassandra and write an init script for setting the password.
  2. Use the bitnami image of cassandra and directly provide the password through the environment variables that it provides:
    ...
    environment:
      - CASSANDRA_SEEDS=cassandra
      - CASSANDRA_PASSWORD_SEEDER=yes
      - CASSANDRA_PASSWORD=cassandra
    ...

Mentioned in #23 . Please let me know which way should I go ahead.