From 7649d8fb56b110e801286d89254eafe486ddba8a Mon Sep 17 00:00:00 2001 From: rushiiMachine <33725716+rushiiMachine@users.noreply.github.com> Date: Fri, 25 Aug 2023 23:00:57 -0700 Subject: [PATCH] feat: initial project --- .env.example | 13 +++++++++++++ .gitattributes | 1 + .gitignore | 2 ++ docker-compose.yml | 21 +++++++++++++++++++++ down.sh | 1 + up.sh | 1 + 6 files changed, 39 insertions(+) create mode 100644 .env.example create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100755 down.sh create mode 100755 up.sh diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..7302cce --- /dev/null +++ b/.env.example @@ -0,0 +1,13 @@ +# https://github.com/MateriiApps/mai#config + +DISCORD_TOKEN= +GITHUB_TOKEN= + +OWNERS= + +ANDROIDX_CHANNEL= +ANDROIDX_ROLE= + +AGE_REQUIREMENT= + +LOG_LEVEL=Info diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..94f480d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a5c8936 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.vscode +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2d12df3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: "3.7" + +services: + mai: + container_name: mai + image: ghcr.io/materiiapps/mai:latest + restart: on-failure + env_file: .env + labels: + - "com.centurylinklabs.watchtower.scope=mai" + mai-updater: + container_name: mai-updater + image: containrrr/watchtower:1.5.3 + restart: on-failure + volumes: + - /var/run/docker.sock:/var/run/docker.sock + environment: + WATCHTOWER_POLL_INTERVAL: 21600 # 6h + WATCHTOWER_SCOPE: mai + labels: + - "com.centurylinklabs.watchtower.scope=mai" diff --git a/down.sh b/down.sh new file mode 100755 index 0000000..318bb8b --- /dev/null +++ b/down.sh @@ -0,0 +1 @@ +sudo docker-compose -p mai down \ No newline at end of file diff --git a/up.sh b/up.sh new file mode 100755 index 0000000..23e84ac --- /dev/null +++ b/up.sh @@ -0,0 +1 @@ +sudo docker-compose -p mai up --build -d