You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.4 KiB

  1. version: "2"
  2. services:
  3. web:
  4. image: nginx
  5. ports:
  6. - "88:80"
  7. restart: always
  8. volumes:
  9. - ./nginx/conf:/etc/nginx
  10. - ./nginx/log:/var/log/nginx
  11. - ./nginx/www:/usr/share/nginx/html
  12. networks:
  13. - dlc-dev-network
  14. depends_on:
  15. - php
  16. mysql:
  17. image: mysql
  18. restart: always
  19. volumes:
  20. - ./mysql/etc:/etc/mysql
  21. - ./mysql/data:/var/lib/mysql
  22. restart: always
  23. environment:
  24. - MYSQL_ROOT_PASSWORD=73937393
  25. - MYSQL_DATABASE=antsys
  26. networks:
  27. - dlc-dev-network
  28. php:
  29. image: pay46/php7.3
  30. restart: always
  31. volumes:
  32. - ./nginx/www:/www
  33. - ./php-fpm/etc:/usr/local/etc/php
  34. depends_on:
  35. - mongodb
  36. - mysql
  37. - redis
  38. networks:
  39. - dlc-dev-network
  40. mongodb:
  41. image: mongo
  42. restart: always
  43. volumes:
  44. - ./mongodb/data:/data/db
  45. - ./mongodb/log:/data/logs
  46. environment:
  47. - MONGO_INITDB_ROOT_USERNAME=root
  48. - MONGO_INITDB_ROOT_PASSWORD=73937393
  49. networks:
  50. - dlc-dev-network
  51. redis:
  52. image: redis
  53. restart: always
  54. command: [
  55. "bash", "-c",
  56. '
  57. docker-entrypoint.sh
  58. --requirepass "73937393"
  59. '
  60. ]
  61. volumes:
  62. - ./redis/etc:/usr/local/etc/redis
  63. - ./redis/data:/data
  64. networks:
  65. - dlc-dev-network
  66. networks:
  67. dlc-dev-network:
  68. driver: bridge