Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. PG::ConnectionBad (could not connect to server: No such file or directory
  2. Is the server running locally and accepting
  3. connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  4. ):
  5.  
  6. version: '2'
  7. services:
  8. users:
  9. build:
  10. context: '.'
  11. links:
  12. - postgres
  13. - redis
  14. volumes:
  15. - ".:/app/users/"
  16. working_dir: /app/users
  17. command: [rails, server, -p, "3000", -b, 0.0.0.0]
  18. ports:
  19. - "3000:3000"
  20.  
  21. postgres:
  22. image: postgres:9.5
  23. environment:
  24. POSTGRES_DB: somedb
  25. POSTGRES_USER: someuser
  26. POSTGRES_PASSWORD: somepass
  27.  
  28. redis:
  29. image: redis:latest
  30. command: redis-server
  31. ports:
  32. - "6379:6379"
  33. volumes:
  34. - "redis:/var/lib/redis/data"
  35.  
  36. volumes:
  37. redis:
  38.  
  39. development:
  40. <<: *default
  41. database: somedb
  42. user: someuser
  43. password: somepass
  44. host: postgres
  45. port: 5432
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement