Advertisement
Guest User

Untitled

a guest
Sep 19th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. version: '2'
  2. services:
  3. db:
  4. image: mysql:5.7
  5. volumes:
  6. - "./.data/db:/var/lib/mysql"
  7. restart: always
  8. environment:
  9. MYSQL_ROOT_PASSWORD: wordpress
  10. MYSQL_DATABASE: wordpress
  11. MYSQL_USER: wordpress
  12. MYSQL_PASSWORD: wordpress
  13.  
  14. wordpress:
  15. depends_on:
  16. - db
  17. image: wordpress:latest
  18. links:
  19. - db
  20. ports:
  21. - "8000:80"
  22. restart: always
  23. environment:
  24. WORDPRESS_DB_HOST: db:3306
  25. WORDPRESS_DB_PASSWORD: wordpress
  26.  
  27. 18947bb36eb9 nocwp_default bridge local
  28.  
  29. [
  30. {
  31. "Name": "nocwp_default",
  32. "Id": "18947bb36eb9754e708b685899c2ec9f37d3b84fd8db699c4dbd17a310a6fddf",
  33. "Scope": "local",
  34. "Driver": "bridge",
  35. "EnableIPv6": false,
  36. "IPAM": {
  37. "Driver": "default",
  38. "Options": null,
  39. "Config": [
  40. {
  41. "Subnet": "172.18.0.0/16",
  42. "Gateway": "172.18.0.1/16"
  43. }
  44. ]
  45. },
  46. "Internal": false,
  47. "Containers": {
  48. "1cf669bf4026965d1458453fb443fa7ec7d41e802363a1723242c28bdc1e0f32": {
  49. "Name": "nocwp_wordpress_1",
  50. "EndpointID": "2bccacb34567e0c2a9f120372894f3643cdb4deb2a39781066a02ad29c1f0ac8",
  51. "MacAddress": "02:42:ac:12:00:03",
  52. "IPv4Address": "172.18.0.3/16",
  53. "IPv6Address": ""
  54. },
  55. "5ec53dfc8b34a20325b6fcc44af7393d194a560a7ba28e7484bba7286e82ba37": {
  56. "Name": "nocwp_db_1",
  57. "EndpointID": "b21ebfa4bb5be7e6b3e7a9e3f3d33bc074d7024506cbd52c6b1f01ccf3e48e75",
  58. "MacAddress": "02:42:ac:12:00:02",
  59. "IPv4Address": "172.18.0.2/16",
  60. "IPv6Address": ""
  61. }
  62. },
  63. "Options": {},
  64. "Labels": {}
  65. }
  66. ]
  67.  
  68. fastcgi_pass http://172.18.0.3:8000
  69. fastcgi_pass http://172.18.0.3:80
  70. fastcgi_pass http://172.31.41.223:8000 (this is my internal IP address in AWS)
  71.  
  72. telnet 172.18.0.3 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement