docker-compose.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. version: '3'
  2. services:
  3. nginx:
  4. build:
  5. context: ./docker_dev
  6. dockerfile: nginx.docker
  7. restart: always
  8. ports:
  9. - "8889:80"
  10. volumes:
  11. - ./:/app:cached
  12. depends_on:
  13. - php-fpm
  14. php-fpm:
  15. cap_add:
  16. - NET_ADMIN
  17. build:
  18. context: ./docker_dev
  19. dockerfile: php-fpm.docker
  20. restart: always
  21. volumes:
  22. - ./:/app:cached
  23. environment:
  24. XDEBUG_CONFIG: "remote_host=host.docker.internal remote_enable=1"
  25. PHP_IDE_CONFIG: "serverName=Docker"
  26. php-cli:
  27. cap_add:
  28. - NET_ADMIN
  29. build:
  30. context: ./docker_dev
  31. dockerfile: php-cli.docker
  32. restart: always
  33. volumes:
  34. - .:/app:cached
  35. working_dir: /app
  36. tty: true
  37. environment:
  38. XDEBUG_CONFIG: "remote_host=host.docker.internal remote_enable=1"
  39. PHP_IDE_CONFIG: "serverName=Docker"
  40. amic-mysql:
  41. image: mariadb:latest
  42. restart: always
  43. volumes:
  44. - ./:/app:cached
  45. working_dir: /app
  46. environment:
  47. MYSQL_DATABASE: "amic_new"
  48. MYSQL_USER: "work"
  49. MYSQL_PASSWORD: "work"
  50. MYSQL_ROOT_PASSWORD: "root_password"
  51. tty: true
  52. ports:
  53. - "33063:3306"