-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhow-it-works.html
108 lines (108 loc) · 5.65 KB
/
how-it-works.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html><!--[if lt IE 7]<html lang="en" class="no-js oldie lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html lang="en" class="no-js oldie lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html lang="en" class="no-js oldie lt-ie9"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8"><!--[if IE]><!-->
<meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
<title>Dokku Alternative</title>
<meta name="description" content="">
<link rel="stylesheet" href="css/style.css">
</head>
<body><!--[if lt IE 8]>
<p class="browsehappy">
You are using an <strong>outdated</strong> browser.
Please <a href="http://browsehappy.com/">upgrade your browser</a>
to improve your experience.
</p><![endif]-->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-17702108-4');
ga('send', 'pageview');
</script>
<div class="atk-layout">
<div class="atk-layout-row">
<div class="atk-layout-cell atk-swatch-ink">
<div class="atk-move-center atk-col-8">
<div class="atk-bar atk-cells atk-cells-gutter atk-section-small">
<div class="atk-cell"><a href="index.html" class="atk-size-kilo atk-text-nowrap"><strong>Dokku Alternative</strong></a></div>
<div class="atk-cell atk-jackscrew">
<ul class="atk-menu-horizontal">
<li><a href="how-it-works.html" class="atk-padding-small">How does it work</a></li>
<li><a href="try-it.html" class="atk-padding-small">Try It!</a></li>
<li><a href="manager.html" class="atk-padding-small">Web manager</a></li>
<li><a href="javascript:void(0)" class="atk-padding-small">What's new?</a></li>
</ul>
</div>
<div class="atk-cell atk-text-nowrap">
<div class="atk-actions"><a href="https://github.com/dokku-alt/dokku-alt" class="atk-label atk-swatch-yellow"><i class="icon-github-1"></i>
GitHub</a><span class="atk-sep">⋅</span><a href="https://github.com/dokku-alt/dokku-alt/issues">Contact</a></div>
</div>
</div>
</div>
</div>
</div>
<div class="atk-layout-row">
<div class="atk-layout atk-layout-cell">
<div class="atk-layout-column atk-layout-expand">
<div class="atk-section-large atk-swatch-white">
<div class="atk-wrapper">
<h2>Introduction</h2>
<p>
Dokku Alt is most suitable to deploy in-house low-cost multi-site
deployment environments which are secure and easy to manage. If
you have ever used Apache with VirtualHosts then Dokku Alt is a
modern replacament for this technology.
</p>
<p>
Built on top of Docker, Dokku Alt is a manager for your websites,
running alongside any imaginable framework, language or webserver.
</p>
<div class="atk-cells">
<div class="atk-cell atk-expand">
<h3>Acessing Dokku-alt node</h3>
<p>Once Dokku-Alt is deployed, you can access it through ssh like this:<code class="atk-box">$ ssh dokku@my.node.org mariadb:create myapp newdb</code></p>
<p>
The above command will create new database for an
application and automatically link with it.
</p>
</div>
<div class="atk-cell"><img src="img/schema-1.png" width="292"></div>
</div>
<div class="atk-cells">
<div class="atk-cell atk-expand">
<h3>Deploying application to your Node</h3>
<p>
Create a new "git" repository and deploy it directly
inside a new container like this:<code class="atk-box">$ git add remote deploy dokku@my.dokku-alt.com:myapp<br>$ git push deploy master</code>
</p>
<p>
Docker will set up a new container for your application,
install necessary dependencies and finally link your
application with a domain of your choice.
</p>
</div>
<div class="atk-cell"><img src="img/schema-2.png" width="381"></div>
</div>
<h3>Adding Database or Volume support</h3>
<p>
If your application relies on database or stores files
locally, dokku can easily set this up for you.
</p><code class="atk-box">$ dokku volume:create vol1 /data/volume1<br>$ dokku volume:link myapp1 vol1<br>$ dokku volume:link myapp2 vol1</code><code class="atk-box">$ dokku mariadb:create mydb<br>$ dokku mariadb:link myapp1 mydb<br>$ dokku mariadb:link myapp2 mydb</code>
</div>
</div>
</div>
</div>
</div>
<div class="atk-layout-row atk-layout-expand atk-swatch-gray">
<div class="atk-layout-cell">
<div class="atk-wrapper atk-section">© 2015, Distributed under MIT License.</div>
</div>
</div>
</div>
</body>
</html>