Advertisement
Guest User

Untitled

a guest
Oct 14th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. postgres:
  2. build:
  3. context: .
  4. dockerfile: dockerfiles/devdb.dockerfile
  5. environment:
  6. POSTGRES_USER: uih
  7. POSTGRES_PASSWORD: uIhbod!
  8. POSTGRES_DB: uih_portal
  9. ports:
  10. - "5433:5432"
  11.  
  12. FROM postgres:9.5
  13.  
  14. RUN mkdir -p /var/lib/postgresql-static/data
  15. ENV PGDATA /var/lib/postgresql-static/data
  16.  
  17. # psql -d template1 -c 'create extension hstore;'
  18. CMD ["psql", "-d", "template1", "-c", "'create extension hstore;'"]
  19.  
  20. RUN echo "hstore extension installed"
  21.  
  22. $ docker-compose up postgres
  23. Recreating uihportal_postgres_1
  24. Attaching to uihportal_postgres_1
  25. postgres_1 | psql: could not connect to server: No such file or directory
  26. postgres_1 | Is the server running locally and accepting
  27. postgres_1 | connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
  28. uihportal_postgres_1 exited with code 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement