Guest User

Untitled

a guest
Jul 27th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. version: '3.3'
  2.  
  3. networks:
  4. LEMP:
  5.  
  6. services:
  7. nginx:
  8. image: nginx:stable-alpine
  9. ports:
  10. - "80:80"
  11. volumes:
  12. - ./:/dass
  13. - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
  14. depends_on:
  15. - php
  16. networks:
  17. - LEMP
  18.  
  19. mariaDB:
  20. image: 'bitnami/mariadb:latest'
  21. labels:
  22. kompose.service.type: nodeport
  23. volumes:
  24. - 'database:/bitnami'
  25. restart: always
  26. ports:
  27. - "3306:3306"
  28. depends_on:
  29. - nginx
  30. environment:
  31. - MARIADB_ROOT_PASSWORD=secret
  32. - MARIADB_HOST=mariadb
  33. - MARIADB_PORT_NUMBER=3306
  34. - MARIADB_DATABASE=bre
  35. - MARIADB_USER=dass
  36. - MARIADB_PASSWORD=secret
  37. networks:
  38. - LEMP
  39.  
  40. php:
  41. image: php:7-fpm
  42. volumes:
  43. - ./:/dass
  44. ports:
  45. - "9000:9000"
  46. networks:
  47. - LEMP
  48.  
  49. phpmyadmin:
  50. image: phpmyadmin/phpmyadmin
  51. container_name: DASS_phpMyAdmin
  52. ports:
  53. - "8183:80"
  54. environment:
  55. PMA_ARBITRARY: 1
  56. depends_on:
  57. - mariaDB
  58. networks:
  59. - LEMP
  60.  
  61. composer:
  62. restart: 'no'
  63. container_name: DASS_composer
  64. image: 'composer:latest'
  65. command: install
  66. working_dir: /dass/service
  67. volumes:
  68. - ./service:/dass/service
  69.  
  70. volumes:
  71. database:
  72. driver: local
  73.  
  74. server {
  75. listen 80;
  76. index index.php index.html;
  77. server_name localhost;
  78. error_log /var/log/nginx/error.log;
  79. access_log /var/log/nginx/access.log;
  80. root /dass;
  81.  
  82. location ~ .php$ {
  83. try_files $uri =404;
  84. fastcgi_split_path_info ^(.+.php)(/.+)$;
  85. fastcgi_pass php:9000;
  86. fastcgi_index index.php;
  87. include fastcgi_params;
  88. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  89. fastcgi_param PATH_INFO $fastcgi_path_info;
  90. }
  91.  
  92. location /service/ {
  93. try_files $uri /service/index.php;
  94. location ~ .php$ {
  95. try_files $uri =404;
  96. fastcgi_split_path_info ^(.+.php)(/.+)$;
  97. fastcgi_pass php:9000;
  98. fastcgi_index index.php;
  99. include fastcgi_params;
  100. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  101. fastcgi_param PATH_INFO $fastcgi_path_info;
  102. }
  103. }
  104. }
  105.  
  106. project
  107. - index.html
  108. - post.html
  109. - service
  110. - index.php
Add Comment
Please, Sign In to add comment