Guest User

Untitled

a guest
Oct 23rd, 2017
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.  
  5. bugzilla:
  6. build: bugzilla
  7. image: my/bugzilla:1.0.0
  8. container_name: my-bugzilla
  9. restart: always
  10. # env_file:
  11. # - ./.env
  12. environment:
  13. MYSQL_DB: ${BUGZILLA_MARIADB_DB}
  14. MYSQL_USER: ${BUGZILLA_MARIADB_USER}
  15. MYSQL_PWD: ${BUGZILLA_MARIADB_PASSWORD}
  16. depends_on:
  17. - db
  18. ports:
  19. - 8080:80
  20. networks:
  21. bugzilla_db:
  22. bugzilla:
  23. aliases:
  24. - my-bugzilla
  25.  
  26. db:
  27. build: mariadb
  28. image: my/mariadb
  29. container_name: my-bugzilla-db
  30. restart: always
  31. environment:
  32. MYSQL_ROOT_PASSWORD: ${BUGZILLA_MARIADB_PASSWORD}
  33. volumes:
  34. - data-bugzilla-db:/var/lib/mysql:z
  35. ports:
  36. - '3306:3306'
  37. networks:
  38. bugzilla_db:
  39. aliases:
  40. - my-bugzilla-db
  41.  
  42. volumes:
  43. data-bugzilla-db:
  44.  
  45. networks:
  46. bugzilla:
  47. bugzilla_db:
  48.  
  49. # docker network inspect dockerbugzillaupgrade_bugzilla_db
  50. [
  51. {
  52. "Name": "dockerbugzillaupgrade_bugzilla_db",
  53. "Id": "1b6e7cb4c382c35cfb23b7ba247584b1469a7d9d076c6e609106ca4d535f19d1",
  54. "Created": "2017-10-23T16:20:48.156537994+02:00",
  55. "Scope": "local",
  56. "Driver": "bridge",
  57. "EnableIPv6": false,
  58. "IPAM": {
  59. "Driver": "default",
  60. "Options": null,
  61. "Config": [
  62. {
  63. "Subnet": "172.21.0.0/16",
  64. "Gateway": "172.21.0.1"
  65. }
  66. ]
  67. },
  68. "Internal": false,
  69. "Attachable": false,
  70. "Containers": {
  71. "0af71c056d0e995265422e66673c65438e4585f5478f3a57fa3460f9fb8c1c25": {
  72. "Name": "my-bugzilla",
  73. "EndpointID": "24efee64b6aebdbdc0e9304e7bc484e042b2b6c41b92938044ac090ac5d7020d",
  74. "MacAddress": "02:42:ac:15:00:03",
  75. "IPv4Address": "172.21.0.3/16",
  76. "IPv6Address": ""
  77. },
  78. "586d0ae09a894510aa892c70db038041b1d886f282224c6c9bda9b1eae68a452": {
  79. "Name": "my-bugzilla-db",
  80. "EndpointID": "8525978699f3043066b61f95939fad43c53647166fa82c723bbb451974cfa04a",
  81. "MacAddress": "02:42:ac:15:00:02",
  82. "IPv4Address": "172.21.0.2/16",
  83. "IPv6Address": ""
  84. }
  85. },
  86. "Options": {},
  87. "Labels": {}
  88. }
  89. ]
  90.  
  91. $db_host = 'my-bugzilla-db';
  92.  
  93. Reading ./localconfig...
  94. Checking for DBD-mysql (v4.001) ok: found v4.043
  95. There was an error connecting to MySQL:
  96.  
  97. Access denied for user 'bugs'@'172.21.0.3' (using password: YES)
  98.  
  99. This might have several reasons:
  100.  
  101. * MySQL is not running.
  102. ...
  103.  
  104. sh-4.4# curl my-bugzilla-db:3306
  105. 5.5.5-10.1.19-MariaDB
  106. =ztU/'s4�?�E@OMu%SS'dHzmysql_native_password!��#08S01Got packets out of ordersh-4.4#
Add Comment
Please, Sign In to add comment