feat: gatus, ntfy and refactor
This commit is contained in:
parent
6be48129f6
commit
a57288f872
6 changed files with 107 additions and 26 deletions
40
README.md
Normal file
40
README.md
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Neo, compose.
|
||||||
|
|
||||||
|
## Maintainers
|
||||||
|
Primary maintainers over this repo.
|
||||||
|
|
||||||
|
- Didier `<didier@faulty.nl>`
|
||||||
|
|
||||||
|
## 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.
|
3
custom/gatus/Dockerfile
Normal file
3
custom/gatus/Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM twinproduction/gatus
|
||||||
|
|
||||||
|
COPY ./config.yaml /app/config.yaml
|
16
custom/gatus/config.yaml
Normal file
16
custom/gatus/config.yaml
Normal file
|
@ -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"
|
35
docker-compose.core.yml
Normal file
35
docker-compose.core.yml
Normal file
|
@ -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
|
13
docker-compose.dev-serve.yml
Normal file
13
docker-compose.dev-serve.yml
Normal file
|
@ -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
|
|
@ -52,29 +52,3 @@ services:
|
||||||
- /srv/gitlab/other/runner:/etc/gitlab-runner
|
- /srv/gitlab/other/runner:/etc/gitlab-runner
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /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
|
|
Reference in a new issue