Set user, password and db for postgres docker (#6564)

* Set user, password and db for postgres docker

* Sync other docker services with dockerfile DATABASE_URL
This commit is contained in:
Abenet Tamiru 2020-03-10 19:44:26 +01:00 committed by GitHub
parent 1cdbeea0a8
commit 83a59063fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ services:
- elasticsearch
environment:
RAILS_ENV: development
DATABASE_URL: postgres://postgres:mysecretpassword@db:5432/postgres
DATABASE_URL: postgresql://devto:devto@db:5432/PracticalDeveloper_development
YARN_INTEGRITY_ENABLED: "false"
ELASTICSEARCH_URL: http://elasticsearch:9200
REDIS_URL: redis://redis:6379
@ -30,10 +30,14 @@ services:
environment:
RAILS_ENV: development
REDIS_SIDEKIQ_URL: redis://redis:6379
DATABASE_URL: postgres://postgres:mysecretpassword@db:5432/postgres
DATABASE_URL: postgresql://devto:devto@db:5432/PracticalDeveloper_development
ELASTICSEARCH_URL: http://elasticsearch:9200
db:
image: postgres:${POSTGRES_VERSION:-9.6.15-alpine}
environment:
POSTGRES_USER: devto
POSTGRES_PASSWORD: devto
POSTGRES_DB: PracticalDeveloper_development
ports:
- "5432:5432"
redis: