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.

67 lines
1.3 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:/www
  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. environment:
  23. - MYSQL_ROOT_PASSWORD=73937393
  24. - MYSQL_DATABASE=antsys
  25. networks:
  26. - dlc-dev-network
  27. php:
  28. image: pay46/php7.3
  29. restart: always
  30. volumes:
  31. - ./nginx/www:/www
  32. - ./php-fpm/etc:/usr/local/etc/php
  33. depends_on:
  34. - mongodb
  35. - mysql
  36. - redis
  37. networks:
  38. - dlc-dev-network
  39. mongodb:
  40. image: mongo
  41. restart: always
  42. volumes:
  43. - ./mongodb/data:/data/db
  44. - ./mongodb/log:/data/logs
  45. environment:
  46. - MONGO_INITDB_ROOT_USERNAME=root
  47. - MONGO_INITDB_ROOT_PASSWORD=73937393
  48. networks:
  49. - dlc-dev-network
  50. redis:
  51. image: redis
  52. restart: always
  53. command: [
  54. "bash", "-c",
  55. '
  56. docker-entrypoint.sh
  57. --requirepass "73937393"
  58. '
  59. ]
  60. volumes:
  61. - ./redis/etc:/usr/local/etc/redis
  62. - ./redis/data:/data
  63. networks:
  64. - dlc-dev-network
  65. networks:
  66. dlc-dev-network:
  67. driver: bridge