Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. version: "3.1"
  2. services:
  3.  
  4. webserver:
  5. image: nginx:alpine
  6. container_name: bralion-webserver
  7. working_dir: /application
  8. networks:
  9. itbcode_net:
  10. ipv4_address: 10.3.0.11
  11. volumes:
  12. - .:/application
  13. - ./itbcode_docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
  14. ports:
  15. - "8089:80"
  16.  
  17. mysql:
  18. image: mysql:5.7
  19. container_name: bralion-mysql
  20. working_dir: /application
  21. networks:
  22. itbcode_net:
  23. ipv4_address: 10.3.0.12
  24. volumes:
  25. - .:/application
  26. - ./var/mysql:/var/lib/mysql
  27. environment:
  28. - MYSQL_ROOT_PASSWORD=123
  29. - MYSQL_DATABASE=bralion
  30. - MYSQL_USER=bralion
  31. - MYSQL_PASSWORD=123
  32. - MYSQL_ALLOW_EMPTY_PASSWORD=true
  33. ports:
  34. - "8088:3306"
  35.  
  36. phpmyadmin:
  37. image: phpmyadmin/phpmyadmin
  38. links:
  39. - mysql
  40. environment:
  41. PMA_HOST: mysql
  42. PMA_PORT: 3306
  43. ports:
  44. - '8080:80'
  45.  
  46.  
  47. php-fpm:
  48. build: itbcode_docker/php-fpm
  49. container_name: bralion-php-fpm
  50. working_dir: /application
  51. networks:
  52. itbcode_net:
  53. ipv4_address: 10.3.0.13
  54. volumes:
  55. - .:/application
  56. - ~/.ssh/:/root/.ssh/
  57. - ~/.bash_history:/root/.bash_history
  58. - ./itbcode_docker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
  59.  
  60. redis:
  61. image: redis:alpine
  62. container_name: sd-redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement