Code Monkey home page Code Monkey logo

dedicated-server-setup's Introduction

dedicated-server-setup

Just a reminder on how to setup a dedicated server.

Server

Dedibox XC 2015

How

Ansible & Docker.

ansible-playbook deploy.yml -i inventories/hosts --ask-become-pass

Features

mailserver

You SHOULD add ssl certificates into roles/docker.mailserver/files/ssl to enable ssl on the mail server. Follow instructions on https://github.com/tomav/docker-mailserver to do it.

If adding a mailbox (imap folder) (in mail on OS X for instance) doesn't work. Go in the docker container in /var/mail/tld/account and create a file courierimapsubscribed with in it:

INBOX.Drafts
INBOX.Sent
INBOX.Trash

and execute

maildirmake .Drafts
maildirmake .Trash
maildirmake .Sent

cadvisor

The support is partial until google/cadvisor#771 is resolved. Actually, advisor can only informs user about system status and not docker containers status. We can't mount -v /var/lib/docker/:/var/lib/docker:ro because when an other container restart, it crashes and marks the container as dead.

fluentd

Fluentd works great. We need to launch every containers with the --log_driver=fluentd option. Ansible 1.9.x doesn't support this option yet. We need to wait for 2.0.0. Until that, fluentd is disable.

openvpn

This contaier is also disable until ansible 2.0.0 to have cap_add NET_ADMIN option.

At the first run, we need to run to generate ssh keys:

docker run -v "{{openvpn_data}}:/etc/openvpn" --rm kylemanna/openvpn ovpn_genconfig -u udp://{{openvpn_hostname}}
docker run -v "{{openvpn_data}}:/etc/openvpn" --rm -it kylemanna/openvpn ovpn_initpki

and to get client config

docker run -v "{{openvpn_data}}:/etc/openvpn" --rm -it kylemanna/openvpn easyrsa build-client-full {{client_name}} nopass`
docker run -v "{{openvpn_data}}:/etc/openvpn" --rm kylemanna/openvpn ovpn_getclient {{client_name}} > {{client_name}}.ovpn

plex

At the first run.

dedicated-server-setup's People

Stargazers

 avatar

Watchers

 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.