Advertisement
dockling

Untitled

Nov 2nd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. version: '3.6'
  2.  
  3. services:
  4. nginx:
  5. image: nginx:alpine
  6. container_name: ohwo-nginx
  7. working_dir: /application
  8. ports:
  9. - 80:80
  10. - 443:443
  11. volumes:
  12. - ./nginx_local/conf.d:/etc/nginx/conf.d/
  13. depends_on:
  14. - php-fpm
  15. php-fpm:
  16. build:
  17. context: ./
  18. container_name: ohwo-php
  19. hostname: php-fpm
  20. volumes:
  21. - .:/application
  22. links:
  23. - mariadb
  24. depends_on:
  25. - mariadb
  26. mariadb:
  27. image: mariadb:10.2
  28. container_name: ohwo-mariadb
  29. hostname: mariadb
  30. working_dir: /application
  31. volumes:
  32. - ./backup:/backup
  33. ports:
  34. - 3306:3306
  35. environment:
  36. - MYSQL_ROOT_PASSWORD=root
  37. - MYSQL_DATABASE=ohwolar
  38. - MYSQL_USER=ohwolar
  39. - MYSQL_PASSWORD=ohwolar
  40. mongo:
  41. image: mongo:3.6
  42. command: --smallfiles
  43. container_name: ohwo-mongo
  44. hostname: mongo
  45. restart: always
  46. ports:
  47. - 27017:27017
  48. #environment:
  49. # - MONGO_INITDB_ROOT_USERNAME: root
  50. # - MONGO_INITDB_ROOT_PASSWORD: example
  51. node:
  52. image: node:8
  53. container_name: ohwo-node
  54. hostname: ohwo-node
  55. working_dir: /application
  56. volumes:
  57. - .:/application
  58. networks:
  59. default:
  60. driver: bridge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement