RadicalxChange / rxc-voice

An app for decentralized democratic governance.
https://voice.radicalxchange.org/
Other
42 stars 14 forks source link

db service won't reinitialize database after first build #57

Closed alexrandaccio closed 2 years ago

alexrandaccio commented 3 years ago

Steps to recreate this

  1. build dev mode Docker images and stand up containers
  2. stop containers
  3. change env variables (e.g. change POSTGRES_DB)
  4. rebuild Docker images and stand up containers

Expected behavior

The db service should create a new database with the new name and rxcvoice_api_1 should connect to it.

Current behavior

The db service finds the original database, skips initialization, then errors with the message "database 'newname' does not exist".