turned base into nyx deployment

This commit is contained in:
Bryan Joshua Pedini 2023-04-07 13:57:37 +02:00
parent 5ed1af1f7f
commit 50f822f653
5 changed files with 28 additions and 8 deletions

View File

@ -1,6 +1,6 @@
MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1,2 +1,2 @@
# Base App Deployment # Nyx Deployment
This is the base on which (almost) every deployment is sort-of-based on. Source: [rls-moe/nyx](https://github.com/rls-moe/nyx)

12
config.yml.example Normal file
View File

@ -0,0 +1,12 @@
listen_on: ":8080"
mastersecret: "changeme"
site:
title: "Nyx"
description: "Nyx Default Configuration"
db:
file: "data/data.db"
captcha:
mode: "internal"

View File

@ -1,6 +1,7 @@
--- ---
services: services:
app: nyx:
image: bryanpedini/nyx:${NYX_VERSION}
restart: unless-stopped restart: unless-stopped
labels: labels:
### Section Træfik ### Section Træfik
@ -29,6 +30,9 @@ services:
- diun.exclude_tags=${DIUN_EXCLUDE} - diun.exclude_tags=${DIUN_EXCLUDE}
networks: networks:
- traefik - traefik
volumes:
- ${NYX_DATA}/config.yml:/opt/nyx/config.yml
- ${NYX_DATA}/data:/opt/nyx/data
networks: networks:
traefik: traefik:

View File

@ -1,10 +1,10 @@
# Træfik # Træfik
TRAEFIK_ENABLED=true TRAEFIK_ENABLED=true
TRAEFIK_NETWORK=traefik TRAEFIK_NETWORK=traefik
TRAEFIK_ROUTER=app_example_com TRAEFIK_ROUTER=nyx_example_com
TRAEFIK_SERVICE=app_example_com TRAEFIK_SERVICE=nyx_example_com
TRAEFIK_SERVICE_PORT=80 TRAEFIK_SERVICE_PORT=8080
TRAEFIK_MATCHRULE=Host(`app.example.com`) TRAEFIK_MATCHRULE=Host(`nyx.example.com`)
TRAEFIK_TLSENABLED=true TRAEFIK_TLSENABLED=true
TRAEFIK_CERTRESOLVER=letsencrypt TRAEFIK_CERTRESOLVER=letsencrypt
TRAEFIK_HTTP_MIDDLEWARES=http-to-https TRAEFIK_HTTP_MIDDLEWARES=http-to-https
@ -16,3 +16,7 @@ DIUN_WATCHREPO=true
DIUN_SORTALGO=semver DIUN_SORTALGO=semver
DIUN_INCLUDE= DIUN_INCLUDE=
DIUN_EXCLUDE= DIUN_EXCLUDE=
# Nyx
NYX_VERSION=latest
NYX_DATA=./data