Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. version: '2'
  2.  
  3. networks:
  4. intranet:
  5.  
  6. services:
  7.  
  8. postgres:
  9. image: postgres:9.3.6
  10. container_name: intranet-postgres
  11. volumes:
  12. - ./database:/var/lib/postgresql/data
  13. environment:
  14. - POSTGRES_PASSWORD=postgres
  15. - POSTGRES_DB=postgres
  16. - POSTGRES_USER=postgres
  17. - PGDATA=/home
  18. networks:
  19. intranet:
  20. ports:
  21. - "5432:5432"
  22.  
  23. php7.0-fpm:
  24. image: php:7.0-fpm
  25. container_name: intranet-php7.0-fpm
  26. volumes:
  27. - ./www:/usr/share/nginx/html:rw
  28. links:
  29. - postgres
  30. networks:
  31. intranet:
  32. ports:
  33. - "9000:9000"
  34.  
  35. app:
  36. image: nginx
  37. container_name: intranet-app
  38. volumes:
  39. - ./www:/usr/share/nginx/html:rw
  40. - ./conf/default.conf:/etc/nginx/conf.d/default.conf:ro
  41. networks:
  42. intranet:
  43. ports:
  44. - "8090:80"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement