diff --git a/compose.yaml b/compose.yaml index fa814e7..1e33ae1 100644 --- a/compose.yaml +++ b/compose.yaml @@ -7,8 +7,8 @@ services: # - "3000:3000" environment: - RAILS_ENV=production - - DATABASE_URL=postgresql://postgres:xxx@db:5432/db - - RAILS_MASTER_KEY=xxx + - DATABASE_URL=postgresql://postgres:${PG_PASSWORD}@db:5432/db + - RAILS_MASTER_KEY=${RAILS_MASTER_KEY} - REDIS_URL=redis://redis:6379/0 depends_on: - db @@ -19,8 +19,8 @@ services: command: bundle exec sidekiq environment: - RAILS_ENV=production - - DATABASE_URL=postgresql://postgres:xxx@db:5432/db - - RAILS_MASTER_KEY=xxx + - DATABASE_URL=postgresql://postgres:${PG_PASSWORD}@db:5432/db + - RAILS_MASTER_KEY=${RAILS_MASTER_KEY} - REDIS_URL=redis://redis:6379/0 depends_on: - db @@ -31,7 +31,7 @@ services: volumes: - ../taw_data/pg:/var/lib/postgresql/data environment: - - POSTGRES_PASSWORD=xxx + - POSTGRES_PASSWORD=${PG_PASSWORD} - POSTGRES_DB=db redis: