GithubHelp home page GithubHelp logo

confessore / wrenstone-kronos Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 230 KB

a discord bot for kronos iv @ twinstar.cz

License: Other

Dockerfile 2.12% Shell 5.28% HTML 12.03% C# 72.45% CSS 8.12%
kronos discord wow bot docker compose mariadb microsoft net nginx

wrenstone-kronos's Introduction

wrenstone

 

debugging with microsoft net

set the variables inside of appsettings.Development.json and remove the .Development portion of the file extension

deploying to production with docker

THIS SHOULD ONLY BE DEPLOYED TO A SERVER WITH AN IP ADDRESS LINKED TO THE DOMAIN NAME

FAILURE TO ADHERE TO THIS WILL RESULT IN RATELIMITING BY 'LETSENCRYPT'

 

this deployment guide is tailored for debian based operating systems
it is tested against ubuntu 20.04

 

if you kinda-sorta already know what you are doing, you can install docker and docker-compose on an ubuntu box with docker-install.sh in the scripts directory

 

    $ sudo apt update
    $ sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
    $ echo \
        "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
        $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    $ sudo apt update
    $ sudo apt install docker-ce docker-ce-cli containerd.io

 

    $ sudo apt install docker-compose

 

  • execute define-secrets.sh to define the SQL and SMTP secrets
    $ sudo chmod +x ~/wrenstone/scripts/define-secrets.sh
    $ ~/wrenstone/scripts/define-secrets.sh

note: you could also define and then remove the .default extension from each file in the secrets folder

 

  • create docker volumes for the database and SSL certificate
    $ sudo docker volume create wrenstone-db
    $ sudo docker volume create wrenstone-ssl

 

  • build and run the composition
    $ sudo docker-compose -f docker-compose-debug.yml build
    $ sudo docker-compose -f docker-compose-debug.yml up -d

 

afterthoughts

the nginx service will generate the SSL certificate
it will also renew the certificate before it expires

 

the api service will automagically apply migrations and update the database each time it starts

wrenstone-kronos's People

Contributors

confessore avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.