Guest User

Untitled

a guest
Jan 3rd, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. version: "3.3"
  2. services:
  3. frontend:
  4. build:
  5. context: ./frontend
  6. dockerfile: Dockerfile
  7. ports:
  8. - "8080:80"
  9. networks:
  10. - webnet
  11. depends_on:
  12. - mongo
  13. - backend
  14. links:
  15. - backend
  16.  
  17. mongo:
  18. image: mongo
  19. restart: always
  20. volumes:
  21. - mongodb-data:/data/db
  22. environment:
  23. MONGO_INITDB_ROOT_USERNAME: username
  24. MONGO_INITDB_ROOT_PASSWORD: password
  25. ports:
  26. - 27017:27017
  27. networks:
  28. - webnet
  29.  
  30. mongo-express:
  31. container_name: mongo-express
  32. image: mongo-express
  33. restart: always
  34. ports:
  35. - 8081:8081
  36. networks:
  37. - webnet
  38. environment:
  39. ME_CONFIG_MONGODB_ADMINUSERNAME: username
  40. ME_CONFIG_MONGODB_ADMINPASSWORD: password
  41. ME_CONFIG_BASICAUTH_UERNAME: username
  42. ME_CONFIG_BASICAUTH_PASSWORD: password
  43. depends_on:
  44. - mongo
  45. links:
  46. - mongo
  47.  
  48. backend:
  49. build:
  50. context: ./backend
  51. dockerfile: Dockerfile
  52. restart: always
  53. ports:
  54. - "5000:5000"
  55. networks:
  56. - webnet
  57. depends_on:
  58. - mongo
  59. links:
  60. - mongo
  61.  
  62. networks:
  63. webnet:
  64.  
  65. volumes:
  66. mongodb-data:
Add Comment
Please, Sign In to add comment