Skip to content

Commit 6c85174

Browse files
chore: adjust database conection
1 parent cd81471 commit 6c85174

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker/docker-compose.production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ services:
112112
RAILS_ENV: production
113113
WEB_CONCURRENCY: '4'
114114
RAILS_MAX_THREADS: '5'
115-
DATABASE_URL: '${DATABASE_URL}'
115+
DATABASE_URL: 'postgresql://${POSTGRES_USER:-prostaff}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-prostaff_production}'
116116
# Connect to Redis via Docker network hostname
117117
REDIS_URL: 'redis://default:${REDIS_PASSWORD}@redis:6379/0'
118118
ELASTICSEARCH_URL: '${ELASTICSEARCH_URL:-http://elastic:9200}'
@@ -157,7 +157,7 @@ services:
157157
- coolify
158158
environment:
159159
RAILS_ENV: production
160-
DATABASE_URL: '${DATABASE_URL}'
160+
DATABASE_URL: 'postgresql://${POSTGRES_USER:-prostaff}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB:-prostaff_production}'
161161
REDIS_URL: 'redis://default:${REDIS_PASSWORD}@redis:6379/0'
162162
ELASTICSEARCH_URL: '${ELASTICSEARCH_URL:-http://elastic:9200}'
163163
RAILS_MASTER_KEY: '${RAILS_MASTER_KEY}'

0 commit comments

Comments
 (0)