Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. version: "3"
  2. services:
  3. db:
  4. image: postgres:9.5
  5. container_name: "postgres"
  6. restart: always
  7. ports:
  8. - "5432:5432"
  9. expose:
  10. - "5432"
  11. environment:
  12. - "POSTGRES_USER=postgres_user"
  13. - "POSTGRES_PASSWORD=postgres_password"
  14. volumes:
  15. - "db-data:/var/lib/postgresql/data"
  16. pgweb:
  17. image: sosedoff/pgweb
  18. container_name: "pgweb"
  19. restart: always
  20. network_mode: "host"
  21. ports:
  22. - "8081:8081"
  23. expose:
  24. - "8081"
  25. links:
  26. - db:postgres
  27. environment:
  28. - "DATABASE_URL=postgres://postgres_user:postgres_password@postgres:5432/postgres?sslmode=disable"
  29. depends_on:
  30. - db
  31. volumes:
  32. db-data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement