Inicia projeto

This commit is contained in:
2025-08-24 15:51:20 -03:00
commit bed4c22655
4 changed files with 128 additions and 0 deletions

84
.gitignore vendored Normal file
View File

@@ -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/

13
LEIAME.md Normal file
View File

@@ -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`.

26
docker-compose.yml Normal file
View File

@@ -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

5
setup.sh Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env sh
mkdir moodle
mkdir moodle/database
mkdir moodle/www