MariaDB.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <NuxtLayout name="guides">
  3. <template #intro>
  4. <div class="max-w-xl">
  5. <h2 class="text-4xl font-extrabold text-gray-100 sm:text-5xl sm:tracking-tight lg:text-6xl">
  6. MariaDB
  7. </h2>
  8. <p class="mt-5 text-xl text-indigo-300">
  9. Installing MariaDB to a Debian/Ubuntu machine is quick and easy.
  10. </p>
  11. </div>
  12. </template>
  13. <template #links>
  14. <div class="mt-10 w-full max-w-xs lg:mt-0">
  15. <label for="currency" class="block text-2xl font-medium text-indigo-400">
  16. Recommended Links
  17. </label>
  18. <div class="flex flex-col mt-1.5 pl-3 relative text-indigo-200">
  19. <div>
  20. ↳ <a href="https://docs.docker.com/engine/install/" target="_blank" class="hover:underline">
  21. MariaDB Engine Installation
  22. </a>
  23. </div>
  24. <div>
  25. ↳ <NuxtLink>
  26. Nuxt Link #2
  27. </NuxtLink>
  28. </div>
  29. <div>
  30. ↳ <NuxtLink>
  31. Nuxt Link #3
  32. </NuxtLink>
  33. </div>
  34. </div>
  35. </div>
  36. </template>
  37. <!-- Page Section -->
  38. <template #main>
  39. <section class="py-10 max-w-5xl mx-auto">
  40. <h1 class="mt-5 text-3xl font-bold">
  41. Deploy MariaDB
  42. <small class="text-xs text-gray-500 uppercase">Infrastructure</small>
  43. </h1>
  44. <div class="mt-3 p-5 font-medium bg-gray-100 border-4 border-gray-300 rounded-xl">
  45. Deploys a NoSQL database using Docker.
  46. <small class="block">
  47. NOTE: All database data is stored in the current working folder.
  48. </small>
  49. </div>
  50. <pre class="mt-5 p-5 bg-yellow-100 border-4 border-yellow-300 rounded-xl">
  51. <code>docker run --rm \
  52. --name my-couchdb \
  53. -e COUCHDB_USER=admin \
  54. -e COUCHDB_PASSWORD=password \
  55. -e COUCHDB_ERLANG_COOKIE=33595219-bc56-43ca-9df6-a9b4145f1e49 \
  56. -p 127.0.0.1:5984:5984 \
  57. -v $(pwd):/opt/couchdb/data \
  58. couchdb:3.3.1
  59. </code></pre>
  60. </section>
  61. <section class="py-10 max-w-5xl mx-auto">
  62. <div class="mt-3 p-5 font-medium bg-gray-100 border-4 border-gray-300 rounded-xl">
  63. Deploys a NoSQL database using Docker.
  64. <small class="block">
  65. NOTE: All database data is stored in the current working folder.
  66. </small>
  67. </div>
  68. <pre class="mt-5 p-5 bg-yellow-100 border-4 border-yellow-300 rounded-xl">
  69. <code>version: '3'
  70. services:
  71. db:
  72. image: mysql:8
  73. restart: always
  74. environment:
  75. - MYSQL_ROOT_PASSWORD=gitea
  76. - MYSQL_USER=gitea
  77. - MYSQL_PASSWORD=gitea
  78. - MYSQL_DATABASE=gitea
  79. networks:
  80. - gitea
  81. volumes:
  82. - ./mysql:/var/lib/mysql
  83. </code></pre>
  84. </section>
  85. </template>
  86. </NuxtLayout>
  87. </template>