Advertisement
Guest User

Untitled

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