Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. version: '3.5'
  2.  
  3. services:
  4.  
  5. nginx:
  6. build:
  7. context: ./
  8. target: nginx
  9. ports:
  10. - '8080:80'
  11. volumes:
  12. - './public:/var/www/public:ro'
  13. depends_on:
  14. - php
  15.  
  16. php:
  17. build:
  18. context: ./
  19. target: php_fpm
  20. environment:
  21. APP_ENV: dev
  22. volumes:
  23. - './:/var/www/'
  24. depends_on:
  25. - mongo
  26.  
  27. mongo:
  28. build:
  29. context: ./
  30. target: mongo
  31. volumes:
  32. - './var/data:/data/db'
  33. environment:
  34. MONGO_INITDB_ROOT_USERNAME: admin
  35. MONGO_INITDB_ROOT_PASSWORD: admin
  36.  
  37. networks:
  38. default:
  39. name: blog-network
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement