Advertisement
Guest User

Untitled

a guest
Dec 8th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.  
  5. # == The database container ============================= #
  6. # It runs on the docker network dedicated to this project #
  7. # The environment variables are taken from the .env file #
  8. # The container volume and the MySQL ports are mapped to #
  9. # the local system in order to allow data persistency and #
  10. # network reachability from outside the docker network #
  11. # ======================================================= #
  12. mysql:
  13. restart: always
  14. build: ./docker/mysql
  15. volumes:
  16. - ${DB_PATH}:/var/lib/mysql
  17. environment:
  18. - MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
  19. - MYSQL_DATABASE=${DB_DATABASE}
  20. - MYSQL_USER=${DB_USERNAME}
  21. - MYSQL_PASSWORD=${DB_PASSWORD}
  22. network_mode: host
  23. ports:
  24. - 3321:${DB_PORT}
  25.  
  26. # == The pom-ng container =============================== #
  27. # It sniffs all network traffic and parse the packets in #
  28. # order to find pictures, passwords and other things to #
  29. # display on the web interface. #
  30. # ======================================================= #
  31. pom-ng:
  32. restart: always
  33. build:
  34. context: ./docker/pom-ng
  35. args:
  36. - http_proxy=${ENV_PROXY_HTTP}
  37. - https_proxy=${ENV_PROXY_HTTPS}
  38. network_mode: host
  39. cap_add:
  40. - ALL
  41. tty: true
  42. stdin_open: true
  43.  
  44. # == The web container ================================== #
  45. # It runs on the docker network dedicated to this project #
  46. # It will have to access the database container #
  47. # The container volume and the MySQL ports are mapped to #
  48. # the local system in order to allow data persistency and #
  49. # network reachability from outside the docker network #
  50. # Also, you can attach to it directly #
  51. # ======================================================= #
  52. php:
  53. restart: always
  54. build:
  55. context: ./docker/php
  56. args:
  57. - http_proxy=${ENV_PROXY_HTTP}
  58. - https_proxy=${ENV_PROXY_HTTPS}
  59. volumes:
  60. - .:/var/www/larawos
  61. depends_on:
  62. - mysql
  63. - pom-ng
  64. network_mode: host
  65. ports:
  66. - 8021:80
  67. tty: true
  68. stdin_open: true
  69. working_dir: /var/www/larawos
  70.  
  71. # == The test container ================================= #
  72. # It runs a selenium chrome browser with no graphic #
  73. # interface and it is used to test the web project with #
  74. # laravel dusk. #
  75. # ======================================================= #
  76. selenium:
  77. restart: always
  78. image: selenium/standalone-chrome
  79. depends_on:
  80. - php
  81. network_mode: host
  82. tty: true
  83. stdin_open: true
  84.  
  85. networks:
  86. main:
  87. ipam:
  88. config:
  89. - subnet: 192.168.21.0/24
  90. gateway: 192.168.21.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement