Advertisement
purevtsooj

docker-compose.yml

Sep 23rd, 2017
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4. mysql:
  5. image: mysql
  6. container_name: database
  7. restart: always
  8. ports:
  9. - 4306:3306
  10. environment:
  11. MYSQL_DATABASE: larva
  12. MYSQL_ROOT_PASSWORD: root
  13.  
  14. php:
  15. image: php:7-fpm
  16. container_name: php
  17. restart: always
  18. expose:
  19. - 9000
  20. ports:
  21. - 9003:9003
  22. volumes:
  23. - ".:/var/www/laravel"
  24. entrypoint:
  25. - php-fpm
  26.  
  27. nginx:
  28. image: nginx:latest
  29. container_name: nginx
  30. restart: always
  31. ports:
  32. - 8080:80
  33. volumes:
  34. - ".:/var/www/laravel"
  35. - "./build/nginx.conf:/etc/nginx/conf.d/default.conf"
  36. depends_on:
  37. - php
  38. - mysql
  39. links:
  40. - php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement