From 50f822f6539884ac526d53d0c2fea5d317e1028a Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Fri, 7 Apr 2023 13:57:37 +0200 Subject: [PATCH] turned base into nyx deployment --- LICENSE | 2 +- README.md | 4 ++-- config.yml.example | 12 ++++++++++++ docker-compose.yml | 6 +++++- env.example | 12 ++++++++---- 5 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 config.yml.example diff --git a/LICENSE b/LICENSE index fe6f694..614f30c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Bryan Joshua Pedini +Copyright (c) 2023 Bryan Joshua Pedini Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 3ffde1e..3689586 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# Base App Deployment -This is the base on which (almost) every deployment is sort-of-based on. +# Nyx Deployment +Source: [rls-moe/nyx](https://github.com/rls-moe/nyx) diff --git a/config.yml.example b/config.yml.example new file mode 100644 index 0000000..208e632 --- /dev/null +++ b/config.yml.example @@ -0,0 +1,12 @@ +listen_on: ":8080" +mastersecret: "changeme" + +site: + title: "Nyx" + description: "Nyx Default Configuration" + +db: + file: "data/data.db" + +captcha: + mode: "internal" diff --git a/docker-compose.yml b/docker-compose.yml index cf8e041..e210240 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,7 @@ --- services: - app: + nyx: + image: bryanpedini/nyx:${NYX_VERSION} restart: unless-stopped labels: ### Section Træfik @@ -29,6 +30,9 @@ services: - diun.exclude_tags=${DIUN_EXCLUDE} networks: - traefik + volumes: + - ${NYX_DATA}/config.yml:/opt/nyx/config.yml + - ${NYX_DATA}/data:/opt/nyx/data networks: traefik: diff --git a/env.example b/env.example index 263f7aa..5993b67 100644 --- a/env.example +++ b/env.example @@ -1,10 +1,10 @@ # Træfik TRAEFIK_ENABLED=true TRAEFIK_NETWORK=traefik -TRAEFIK_ROUTER=app_example_com -TRAEFIK_SERVICE=app_example_com -TRAEFIK_SERVICE_PORT=80 -TRAEFIK_MATCHRULE=Host(`app.example.com`) +TRAEFIK_ROUTER=nyx_example_com +TRAEFIK_SERVICE=nyx_example_com +TRAEFIK_SERVICE_PORT=8080 +TRAEFIK_MATCHRULE=Host(`nyx.example.com`) TRAEFIK_TLSENABLED=true TRAEFIK_CERTRESOLVER=letsencrypt TRAEFIK_HTTP_MIDDLEWARES=http-to-https @@ -16,3 +16,7 @@ DIUN_WATCHREPO=true DIUN_SORTALGO=semver DIUN_INCLUDE= DIUN_EXCLUDE= + +# Nyx +NYX_VERSION=latest +NYX_DATA=./data