From a57288f872b0348f50e35711b099496d23663aed Mon Sep 17 00:00:00 2001 From: faulty Date: Sun, 26 Feb 2023 16:51:18 +0100 Subject: [PATCH] feat: gatus, ntfy and refactor --- README.md | 40 ++++++++++++++++++++++++++++++++++++ custom/gatus/Dockerfile | 3 +++ custom/gatus/config.yaml | 16 +++++++++++++++ docker-compose.core.yml | 35 +++++++++++++++++++++++++++++++ docker-compose.dev-serve.yml | 13 ++++++++++++ docker-compose.devops.yml | 26 ----------------------- 6 files changed, 107 insertions(+), 26 deletions(-) create mode 100644 README.md create mode 100644 custom/gatus/Dockerfile create mode 100644 custom/gatus/config.yaml create mode 100644 docker-compose.core.yml create mode 100644 docker-compose.dev-serve.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..7ea9201 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +# Neo, compose. + +## Maintainers +Primary maintainers over this repo. + +- Didier `` + +## Compose Sections +All sections are divided into files. + +### base +> Note: this is an establishing-section. It should not include services. + +This section is responsible for the reverse proxy and all other to establish a proper connection to a service. + +### core +Core is responsible for some essential services used throughout the IXVD/Faulty ecosystem. + +### cloud +Section related to cloud services. +E.g. Cryptpad. + +### devops +Anything related to having a proper development experience. + +### dev-serve +Contains servers used for collaborative development. +E.g. databases, message brokers, etc. + +### games +Any games hosted on neo are located here. + +### media +Media servers. + +### utils +Utilities that are too category-scarce to get it's own section. + +### web +Websites and such. \ No newline at end of file diff --git a/custom/gatus/Dockerfile b/custom/gatus/Dockerfile new file mode 100644 index 0000000..b410c55 --- /dev/null +++ b/custom/gatus/Dockerfile @@ -0,0 +1,3 @@ +FROM twinproduction/gatus + +COPY ./config.yaml /app/config.yaml \ No newline at end of file diff --git a/custom/gatus/config.yaml b/custom/gatus/config.yaml new file mode 100644 index 0000000..e086874 --- /dev/null +++ b/custom/gatus/config.yaml @@ -0,0 +1,16 @@ +x-http-endpoint: &default-http + group: http + interval: 10m + conditions: &default-http-conditions + - "[STATUS] == 200" + +endpoints: + - name: proxy + <<: *default-http + group: core + url: "http://proxy" + + - name: ntfy + <<: *default-http + group: core + url: "http://ntfy" \ No newline at end of file diff --git a/docker-compose.core.yml b/docker-compose.core.yml new file mode 100644 index 0000000..e45bc80 --- /dev/null +++ b/docker-compose.core.yml @@ -0,0 +1,35 @@ +version: '2.2' + +services: + gatus: + build: custom/gatus + environment: + VIRTUAL_HOST: s.ixvd.net + VIRTUAL_PORT: 8080 + LETSENCRYPT_HOST: s.ixvd.net + networks: + - proxy + + ntfy: + image: binwiederhier/ntfy + environment: + VIRTUAL_HOST: ntfy.neo.ixvd.net + LETSENCRYPT_HOST: ntfy.neo.ixvd.net + networks: + - proxy + + rabbitmq: + image: rabbitmq:3-management + hostname: rabbitmq + environment: + - LETSENCRYPT_HOST=mq.neo.ixvd.net + - VIRTUAL_HOST=mq.neo.ixvd.net + - VIRTUAL_PORT=15672 + - RABBITMQ_DEFAULT_USER=rmq + - RABBITMQ_DEFAULT_PASS=preconfig + volumes: + - /srv/rabbitmq/data:/var/lib/rabbitmq + ports: + - 5672:5672 + networks: + - proxy diff --git a/docker-compose.dev-serve.yml b/docker-compose.dev-serve.yml new file mode 100644 index 0000000..cd623df --- /dev/null +++ b/docker-compose.dev-serve.yml @@ -0,0 +1,13 @@ +version: '2.2' + +services: + mysql-laravel: + image: mysql:5.7 + restart: always + ports: + - "33061:3306" + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=laravel + - MYSQL_USER=laravel + - MYSQL_PASSWORD=laravel \ No newline at end of file diff --git a/docker-compose.devops.yml b/docker-compose.devops.yml index 0a35ce9..ea55d49 100644 --- a/docker-compose.devops.yml +++ b/docker-compose.devops.yml @@ -52,29 +52,3 @@ services: - /srv/gitlab/other/runner:/etc/gitlab-runner - /var/run/docker.sock:/var/run/docker.sock - rabbitmq: - image: rabbitmq:3-management - hostname: rabbitmq - environment: - - LETSENCRYPT_HOST=mq.neo.ixvd.net - - VIRTUAL_HOST=mq.neo.ixvd.net - - VIRTUAL_PORT=15672 - - RABBITMQ_DEFAULT_USER=rmq - - RABBITMQ_DEFAULT_PASS=preconfig - volumes: - - /srv/rabbitmq/data:/var/lib/rabbitmq - ports: - - 5672:5672 - networks: - - proxy - - mysql-laravel: - image: mysql:5.7 - restart: always - ports: - - "33061:3306" - environment: - - MYSQL_ROOT_PASSWORD=root - - MYSQL_DATABASE=laravel - - MYSQL_USER=laravel - - MYSQL_PASSWORD=laravel \ No newline at end of file