commit bed4c22655010ecca091e4a9e96e82546e61b989 Author: Graciano Date: Sun Aug 24 15:51:20 2025 -0300 Inicia projeto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5087922 --- /dev/null +++ b/.gitignore @@ -0,0 +1,84 @@ +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### services + +#### moodle +moodle/ + diff --git a/LEIAME.md b/LEIAME.md new file mode 100644 index 0000000..41b5182 --- /dev/null +++ b/LEIAME.md @@ -0,0 +1,13 @@ +# Serviços provedor NT MTST + +Objetivo deste repositório é criar um ambiente em docker com serviços a serem fornecidos em redes comunitárias. + +Para criar o ambiente localmente, primeiro execute o script de setup (dentro do contexto deste diretório): + +`sh setup.sh` + +Depois, basta iniciar o docker: + +`docker compose up` + +Se não deseja visualizar os logs e liberar o terminal, basta rodar `docker compose up -d`. Quando terminar, `docker compose down` derruba os servidores e mantém os dados nos volumes indicados no `docker-compose.yml`. \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..975794d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +services: + moodle_db: + image: mariadb:10 + container_name: moodle_db + environment: + MYSQL_RANDOM_ROOT_PASSWORD: 1 + MYSQL_DATABASE: moodle + MYSQL_USER: moodle + MYSQL_PASSWORD: yXoPah6yZ8o8Xwpa57Lb9w + volumes: + - ./moodle/database:/var/lib/mysql + moodle: + image: moodlehq/moodleapp:latest + ports: + - "80:443" + expose: + - 443 + environment: + MOODLE_DOMAIN: moodle.localhost + MOODLE_DB_HOST: moodle_db + MYSQL_PORT_3306_TCP: 3306 + MOODLE_DB_NAME: moodle + MOODLE_DB_USER: moodle + MOODLE_DB_PASSWORD: yXoPah6yZ8o8Xwpa57Lb9w + volumes: + - ./moodle/www:/var/www/html \ No newline at end of file diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..9200f36 --- /dev/null +++ b/setup.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env sh + +mkdir moodle +mkdir moodle/database +mkdir moodle/www \ No newline at end of file