pull creds from the enclosing environment

When we stand up, we establish the configuration for database
authentication in the postgres docker container. Put these credentials
into environment variables for production, and default to known values
for development.
This commit is contained in:
Brian O'Reilly 2025-12-07 12:36:40 -05:00 committed by Brian O'Reilly
parent e55210c332
commit 8754e7261f
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@
;; (config :connections :default) :main
(config :connections :main :host) "localhost"
(config :connections :main :port) 5432
(config :connections :main :user) "asteroid"
(config :connections :main :pass) "asteroid_db_2025"
(config :connections :main :database) "asteroid")
(config :connections :main :user) (or (uiop:getenv "ASTEROID_DB_USER") "asteroid")
(config :connections :main :pass) (or (uiop:getenv "ASTEROID_DB_PASSWORD") "asteroid_db_2025")
(config :connections :main :database) (or (uiop:getenv "ASTEROID_DB_NAME") "asteroid"))
;; Alternative Docker configuration (uncomment when running Asteroid in Docker)
;; (setf (config :database :connection)