-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhow-it-works.jade
68 lines (57 loc) · 2.63 KB
/
how-it-works.jade
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
extends index.jade
block content
.atk-section-large.atk-swatch-white
.atk-wrapper
h2 Introduction
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
| Built on top of Docker, Dokku Alt is a manager for your websites,
| running alongside any imaginable framework, language or webserver.
.atk-cells
.atk-cell.atk-expand
h3 Acessing Dokku-alt node
p
| Once Dokku-Alt is deployed, you can access it through ssh like this:
code.atk-box
| $ ssh dokku@my.node.org mariadb:create myapp newdb
p
| The above command will create new database for an
| application and automatically link with it.
.atk-cell
img(src="img/schema-1.png" width="292")
.atk-cells
.atk-cell.atk-expand
h3 Deploying application to your Node
p
| Create a new "git" repository and deploy it directly
| inside a new container like this:
code.atk-box
| $ git add remote deploy dokku@my.dokku-alt.com:myapp
br
| $ git push deploy master
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.
.atk-cell
img(src="img/schema-2.png" width="381")
h3 Adding Database or Volume support
p
| If your application relies on database or stores files
| locally, dokku can easily set this up for you.
code.atk-box
| $ dokku volume:create vol1 /data/volume1
br
| $ dokku volume:link myapp1 vol1
br
| $ dokku volume:link myapp2 vol1
code.atk-box
| $ dokku mariadb:create mydb
br
| $ dokku mariadb:link myapp1 mydb
br
| $ dokku mariadb:link myapp2 mydb