Guest User

Untitled

a guest
Jan 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. version: '2'
  2. services:
  3.  
  4. # The Application
  5. app:
  6. image: 696759765437.dkr.ecr.us-east-1.amazonaws.com/ali-
  7. maison/tribe-migrate
  8. volumes:
  9. - /var/www/storage
  10. env_file: '.env'
  11. environment:
  12. - "DB_HOST=database"
  13. - "REDIS_HOST=cache"
  14.  
  15. # The Web Server
  16. web:
  17. image: 696759765437.dkr.ecr.us-east-1.amazonaws.com/ali-maison/laravel-web
  18. ports:
  19. - 80:80
  20.  
  21. # The Database
  22. database:
  23. image: mysql:5.6
  24. volumes:
  25. - dbdata:/var/lib/mysql
  26. environment:
  27. - "MYSQL_DATABASE=homestead"
  28. - "MYSQL_USER=homestead"
  29. - "MYSQL_PASSWORD=secret"
  30. - "MYSQL_ROOT_PASSWORD=secret"
  31.  
  32. # redis
  33. cache:
  34. image: redis:3.0-alpine
  35.  
  36. volumes:
  37. dbdata:
  38.  
  39. FROM nginx:1.10
  40.  
  41. ADD vhost.conf /etc/nginx/conf.d/default.conf
  42. WORKDIR /var/www
  43.  
  44. server {
  45. listen 80;
  46. index index.php index.html;
  47. root /var/www/public;
  48.  
  49. location / {
  50. try_files $uri /index.php?$args;
  51. }
  52.  
  53. location ~ .php$ {
  54. fastcgi_split_path_info ^(.+.php)(/.+)$;
  55. fastcgi_pass app:9000;
  56. fastcgi_index index.php;
  57. include fastcgi_params;
  58. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  59. fastcgi_param PATH_INFO $fastcgi_path_info;
  60. }
  61. }
Add Comment
Please, Sign In to add comment