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.

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