Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. version: '3.5'
  2.  
  3. services:
  4. postgres:
  5. container_name: postgres_container
  6. image: postgres
  7. environment:
  8. POSTGRES_USER: ${POSTGRES_USER:-postgres}
  9. POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
  10. PGDATA: /data/postgres
  11. volumes:
  12. - postgres:/data/postgres
  13. ports:
  14. - "5432:5432"
  15. networks:
  16. - postgres
  17. restart: unless-stopped
  18.  
  19. pgadmin:
  20. container_name: pgadmin_container
  21. image: dpage/pgadmin4
  22. environment:
  23. PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-pgadmin4@pgadmin.org}
  24. PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
  25. volumes:
  26. - pgadmin:/root/.pgadmin
  27. ports:
  28. - "${PGADMIN_PORT:-5050}:80"
  29. networks:
  30. - postgres
  31. restart: unless-stopped
  32.  
  33. networks:
  34. postgres:
  35. driver: bridge
  36.  
  37. volumes:
  38. postgres:
  39. pgadmin:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement