docker-compose.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. version: '3.2'
  2. services:
  3. nginx:
  4. container_name: nginx_rplf
  5. image: "${NGINX_VERSION}"
  6. ports:
  7. - 80:80
  8. - 443:443
  9. volumes:
  10. - ./log/nginx:/var/log/nginx
  11. - ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
  12. - ./etc/nginx/conf.d:/etc/nginx/conf.d
  13. - ./etc/nginx/ssl:/etc/nginx/ssl
  14. - ./wwwroot:/var/www
  15. environment:
  16. ENABLE_CRONTAB: "true"
  17. TZ: ${TZ}
  18. restart: on-failure
  19. php-fpm:
  20. container_name: php_rplf
  21. # image: "${PHP_VERSION}"
  22. build: ./Docker/php-fpm/
  23. volumes:
  24. - ./etc/php-fpm/php-fpm.ini:/usr/local/etc/php-fpm.ini
  25. # - ./etc/php-fpm/crontabs:/etc/crontabs
  26. - ./wwwroot:/var/www
  27. environment:
  28. ENABLE_CRONTAB: "true"
  29. TZ: ${TZ}
  30. restart: on-failure
  31. mysql:
  32. container_name: mysql_rplf
  33. image: "${MYSQL_VERSION}"
  34. # command: --default-authentication-plugin=mysql_native_password
  35. volumes:
  36. # - ./etc/mysql/my.cnf:/etc/my.cnf
  37. # - ./etc/mysql/my.cnf.d:/etc/my.cnf.d
  38. - ./data/mysql/databases:/var/lib/mysql
  39. environment:
  40. MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
  41. MYSQL_ROOT_HOST: "%"
  42. TZ: ${TZ}
  43. restart: on-failure
  44. phpmyadmin:
  45. container_name: phpmyadmin_rplf
  46. image: "${PMA_VERSION}"
  47. ports:
  48. - 8081:80
  49. depends_on:
  50. - mysql
  51. environment:
  52. PMA_HOST: mysql
  53. TZ: ${TZ}
  54. restart: on-failure
  55. # redis:
  56. # image: "${REDIS_VERSION}"
  57. # volumes:
  58. # - ./data/redis/data:/data:rw
  59. # environment:
  60. # TZ: ${TZ}
  61. # restart: on-failure