Guest User

Untitled

a guest
Jun 25th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. nginx:
  2. image: nginx:1.13.12
  3. container_name: nginx
  4. restart: always
  5. ports:
  6. - "80:80"
  7. volumes:
  8. - ../docker/nginx_conf:/etc/nginx/conf.d
  9. - ./:/var/www/html
  10. - /usr/bin/ssh:/usr/bin/ssh
  11. volumes_from:
  12. - php:rw
  13. links:
  14. - php
  15.  
  16. php:
  17. image: php:7.2-fpm-stretch
  18. container_name: php
  19. restart: always
  20. environment:
  21. - XDEBUG_CONFIG=remote_host=172.17.0.1
  22. - PHP_IDE_CONFIG=serverName=docker
  23. volumes:
  24. - ./:/var/www/html
  25. - /usr/bin/ssh:/usr/bin/ssh
  26. - ../docker/volumes/logsxdebug/:/tmp/xdebug_log #Logs for Xdebug
  27. ports:
  28. - "9001:9001"
  29. links:
  30. - postgres:postgres
  31. - redis:redis
  32.  
  33. postgres:
  34. image: postgres:10.3
  35. container_name: postgres
  36. restart: always
  37. environment:
  38. - POSTGRES_USER=app
  39. - POSTGRES_PASSWORD=123456A
  40. ports:
  41. - "5432:5432"
  42. volumes:
  43. - ../docker/volumes/postgres103:/var/lib/postgresql/data
  44.  
  45. mysql:
  46. image: mysql:5.7
  47. container_name: mysql
  48. restart: always
  49. environment:
  50. - MYSQL_ROOT_PASSWORD=123456A
  51. - MYSQL_DATABASE=app
  52. - MYSQL_USER=app
  53. - MYSQL_PASSWORD=123456A
  54. ports:
  55. - "3306:3306"
  56. volumes:
  57. - ../docker/volumes/mysql57:/var/lib/mysql
  58.  
  59. redis:
  60. image: redis:3.2.11
  61. container_name: redis
  62. restart: always
  63. ports:
  64. - "6379:6379"
  65.  
  66. pgadmin:
  67. image: fenglc/pgadmin4
  68. container_name: pgadmin
  69. restart: always
  70. environment:
  71. - DEFAULT_USER=app
  72. - DEFAULT_PASSWORD:123456A
  73. ports:
  74. - "5050:5050"
  75. volumes:
  76. - ../docker/volumes/pgadmin/config:/pgadmin/config
  77. - ../docker/volumes/pgadmin/storage:/pgadmin/storage
  78. links:
  79. - postgres:postgres
  80.  
  81. adminer:
  82. image: adminer
  83. container_name: adminer
  84. restart: always
  85. ports:
  86. - "8080:8080"
  87. links:
  88. - mysql:mysql
Add Comment
Please, Sign In to add comment