avaaren

problem with postgres

Jun 15th, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. DATABASES = {
  2. 'default': {
  3. 'ENGINE': 'django.db.backends.postgresql',
  4. 'NAME': 'postgres',
  5. 'USER': 'postgres',
  6. 'HOST': 'db',
  7. 'PORT': 5432,
  8. }
  9. }
  10.  
  11.  
  12. db:
  13. image: postgres:13-alpine
  14. volumes:
  15. - postgres_data:/var/lib/postgresql/data/
  16.  
  17.  
  18. django.db.utils.OperationalError: could not translate host name "db" to address: Name or service not known
Advertisement
Add Comment
Please, Sign In to add comment