Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ---
  2. networks:
  3. default:
  4. name: ${PREFIX}
  5. services:
  6. adminer:
  7. container_name: ${PREFIX}-adminer
  8. hostname: ${PREFIX}-adminer
  9. image: adminer:4.8.1-standalone
  10. labels:
  11. - traefik.enable=true
  12. - traefik.http.routers.${PREFIX}-adminer.entrypoints=https
  13. - traefik.http.routers.${PREFIX}-adminer.rule=Host(`adminer.${APP_URL}`)
  14. - traefik.http.routers.${PREFIX}-adminer.tls=true
  15. - traefik.http.services.${PREFIX}-adminer.loadbalancer.server.port=8080
  16. app:
  17. container_name: ${PREFIX}-app
  18. environment:
  19. - PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE}
  20. - PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE}
  21. - XDEBUG_CLIENT_HOST=${XDEBUG_CLIENT_HOST}
  22. - XDEBUG_MODE=${XDEBUG_MODE}
  23. image: ${APP_IMAGE_TAG}
  24. labels:
  25. - traefik.enable=true
  26. - traefik.http.routers.${PREFIX}-web.entrypoints=http
  27. - traefik.http.routers.${PREFIX}-web.middlewares=https-redirect@file
  28. - traefik.http.routers.${PREFIX}-web.rule=Host(`${APP_URL}`)
  29. - traefik.http.routers.${PREFIX}-webssl.entrypoints=https
  30. - traefik.http.routers.${PREFIX}-webssl.rule=Host(`${APP_URL}`)
  31. - traefik.http.routers.${PREFIX}-webssl.tls=true
  32. - traefik.http.services.${PREFIX}-webssl.loadbalancer.server.port=80
  33. volumes:
  34. - webroot:/var/www/html
  35. - wp-cli-cache:/var/www/.wp-cli
  36. db:
  37. command: --default-authentication-plugin=mysql_native_password
  38. container_name: ${PREFIX}-db
  39. environment:
  40. MYSQL_DATABASE: ${DB_NAME}
  41. MYSQL_PASSWORD: ${DB_USER_PASSWORD}
  42. MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
  43. MYSQL_USER: ${DB_USER}
  44. hostname: ${PREFIX}-db
  45. image: mariadb:10.4.6-bionic
  46. ports:
  47. - "${TRAEFIK_LISTENING_IP}:3306:3306"
  48. volumes:
  49. - db:/var/lib/mysql
  50. traefik:
  51. container_name: ${PREFIX}-traefik
  52. command: ["--configFile=/etc/traefik/static/traefik.yml"]
  53. image: traefik:2.5.3
  54. labels:
  55. - traefik.enable=true
  56. - traefik.http.routers.${PREFIX}-traefik.entrypoints=https
  57. - traefik.http.routers.${PREFIX}-traefik.rule=Host(`traefik.${APP_URL}`)
  58. - traefik.http.routers.${PREFIX}-traefik.service=api@internal
  59. - traefik.http.routers.${PREFIX}-traefik.tls=true
  60. ports:
  61. - "${TRAEFIK_LISTENING_IP}:80:80"
  62. - "${TRAEFIK_LISTENING_IP}:443:443"
  63. volumes:
  64. - /etc/localtime:/etc/localtime:ro
  65. - /var/run/docker.sock:/var/run/docker.sock:ro
  66. - traefik-certs:/certs:ro
  67. - traefik-dynamic:/etc/traefik/dynamic:ro
  68. - traefik-logs:/logs
  69. - traefik-static:/etc/traefik/static:ro
  70. version: "3.4"
  71. volumes:
  72. db:
  73. name: ${PREFIX}-db
  74. traefik-certs:
  75. name: ${PREFIX}-traefik-certs
  76. traefik-dynamic:
  77. name: ${PREFIX}-traefik-dynamic
  78. traefik-logs:
  79. name: ${PREFIX}-traefik-logs
  80. traefik-static:
  81. name: ${PREFIX}-traefik-static
  82. webroot:
  83. name: ${PREFIX}-webroot
  84. wp-cli-cache:
  85. name: wp-cli-cache