GithubHelp home page GithubHelp logo

orange888 / make-my-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tommoulard/make-my-server

0.0 1.0 0.0 151 KB

docker compose with traefik and a lot of services

Home Page: https://tom.moulard.org

HTML 0.05% Ruby 99.95%

make-my-server's Introduction

Server configuration

Setup

SITE=tom.moulard.org docker-compose up -d

Now you have my own server configuration.

To be a little more consistent with the management, you can use a .env file and do:

cp .env.default .env

and edit the file to use the correct site url.

Tear down

docker-compose down

TODO

New ideas

more

List

  • which database ? maria / mysql / mongo / postgres
    • gitlab postgresSQL / MySQL - MariaDB
    • nextcloud postgresSQL / MySQL - MariaDB / Oracle
  • nginx.conf
  • create a git repository auto in gitlab for // FIXME
  • Create a Dockerfile for a mail server
  • reverse proxy with ssl
  • multi files configuration
  • Testing
    • traefik
    • gitlab
    • nextcloud
    • nginx
    • weechat
    • transmission
    • vpn
    • jupyter
    • pastebin
    • ELK
    • sharelatex / Overleaf
    • blog

Configuration files

  • have default configuration files
    • traefik
    • gitlab
    • gitlab runner
    • transmission
    • pastebin
    • nextcloud
    • nginx
    • ELK (WIP)

Configuration

Don't forget to change db passwords. (migth not be needed since they are beyond the reverse proxy). Fill vpn secrets(if none provided, they are generated directly). Configuration files are: docker-compose.yml, nginx.conf

To set the password:

echo "USERS=$USER:$(openssl passwd -apr1)" >> .env

You can add a new set of credentials by editing the .env file like

USERS=toto:pass,tata:pass, ...

Scalling up

docker-compose scale nginx=2

Adress table

Status Address port(s)
[X] traefik.${SITE} 80, 443 (redirect 80 to 443)
[X] gitlab.${SITE} 22, 80, 443
[X] cloud.${SITE} 80, 443
[X] ${SITE} 80, 443
[ ] mail.${SITE} 25(recv mail), 465(ssl), 587(TLS), 143(IMAP), 993(IMAP), 110(POP3), 995(POP3)
[X] torrent.${SITE} 80, 443 (redirect 80 to 443)
[X] vpn.${SITE} 500, 4500
[X] jupiter.${SITE} 80, 443 (redirect 80 to 443)
[X] paste.${SITE} 80, 443 (redirect 80 to 443)
[X] video.${SITE} 80, 443 (redirect 80 to 443)
[ ] irc.${SITE} ??

Gitlab runner

Get the Registration Token

Find your runner registration token ($REGISTRATION_TOKEN) at http://GITLAB_HOST/$PROJECT_GROUP/$PROJECT_NAME/settings/ci_cd.

There is two way to register the runner:

Register via config file

Register the Registration Token to have a Runner Token

curl -X POST 'http://gitlab.${SITE}/api/v4/runners' --form 'token=$REGISTRATION_TOKEN' --form 'description=The Best Runner'
Change runner configuration

Now change the token in the configuration file.

[[runners]]
    token = "XXXXXXXXXXXXXXXXXXXX"

and run the runner

docker-compose up -d runner
Register via CLI

Steps:

  • up the runner docker-compose up -d runner
  • register the runner
docker-compose exec runner gitlab-runner register \
    --non-interactive \
    --executor "docker" \
    --docker-image alpine:latest \
    --url "http://gitlab/" \
    --registration-token "$REGISTRATION_TOKEN" \
    --description "The Best Runner" \
    --tag-list "docker,aws" \
    --run-untagged="true" \
    --locked="false" \
    --access-level="not_protected"

Authors

Main author:

Gitlab helper:

make-my-server's People

Contributors

tommoulard avatar

Watchers

James Cloos 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.