-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME.jinja2
More file actions
139 lines (99 loc) · 4.18 KB
/
README.jinja2
File metadata and controls
139 lines (99 loc) · 4.18 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# {{trademark}} on Docker

## Introduction
[English](/README.md) | [简体中文](/README-zh.md)
This repository is an **Cloud Native solution** powered by [Websoft9](https://www.websoft9.com), it simplifies the complicated installation and initialization process.
## System Requirements
The following are the minimal [recommended requirements]({{requirements.url}}):
* **OS**: Red Hat, CentOS, Debian, Ubuntu or other's Linux OS
* **Public Cloud**: More than 20+ major Cloud such as AWS, Azure, Google Cloud, Alibaba Cloud, HUAWEIClOUD, Tencent Cloud
* **Private Cloud**: KVM, VMware, VirtualBox, OpenStack
* **ARCH**: {{requirements.cpu_arch}}
* **RAM**: {{requirements.memory}} GB or more
* **CPU**: {{requirements.cpu}} cores or higher
* **HDD**: at least {{requirements.disk}} GB of free space
* **Swap file**: at least {{requirements.swap}} GB
* **bandwidth**: more fluent experience over 100M
## QuickStart
### All-in-one Installer
Use SSH to connect your instance and run the automatic installation script below
```
sudo wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/docker-installer.sh; sudo bash docker-installer.sh -r {{name}}
```
### package install
1.Make package
You can get the package as following script
```
sudo wget -N https://raw.githubusercontent.com/Websoft9/StackHub/main/docker-installer.sh; sudo bash docker-installer.sh -r {{name}} -p
```
2.Install by package
Copy package to your server, Use SSH to connect your instance and run the automatic installation script below
```
sudo bash install-{{name}}
```
### Manual Installation
#### Preparation
If you have not install Docker and Docker-Compose, refer to the following commands to install it:
```
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
sudo systemctl enable docker
sudo systemctl start docker
alias docker-compose='docker compose'
echo "alias docker-compose='docker compose'" >> /etc/profile.d/docker-compose.sh
source /etc/profile.d/docker-compose.sh
```
#### Install {{trademark}}
We assume that you are already familiar with Docker, and you can modify [docker-compose file]({{compose_file}}) by yourself
```
git clone --depth=1 https://github.com/Websoft9/docker-{{name}}
cd docker-{{name}}
{% if command_extra is defined -%}
{% for cmd in command_extra -%}
{{cmd.cmd}}
{% endfor -%}
{% endif -%}
{% if command_comments is defined -%}
{% for comment in command_comments -%}
# {{comment.comment_en}}
{% endfor -%}
{% endif -%}
docker network create websoft9
docker compose up -d
```
### FAQ
#### Do I need to change the password before docker-compose up?
Yes, you should modify all database password and application password at docker-compose file for production
#### Docker runing failed for the reason that port conflict?
You should modify ports at [docker-compose file](docker-compose-production.yml) and docker-compose again
{% if faqs is defined -%}
{% for faq in faqs -%}
#### {{faq.question_en}}
{{faq.answer_en}}
{% endfor -%}
{% endif -%}
### Usage instructions
You can point your browser to: *`http://Instance's Internet IP:port`*
The following is the information that may be needed during use
{% if user is defined -%}
#### Credentials
By default, the available users are:
| Username | Password |
| ------- | -------- |
| {{user.username}} | {{user.password}} |
{% endif -%}
{% if services is defined -%}
#### Services and Ports
| Service | Port | Use | Necessity |
| --- | --- | --- | --- |
{% for service in services -%}
| {{service.name}} | {{service.port}} | {{service.description_en}} | {{service.required}} |
{% endfor -%}
{% endif -%}
## Documentation
[{{trademark}} Administrator Guide](https://support.websoft9.com/docs/{{name}})
## Enterprise Support
If you want to get our Enterprise Support to ensure high availability of applications, you can subscribe our [{{trademark}} Enterprise Support](https://apps.websoft9.com/{{name}})
What you get with a Enterprise Support subscription?
* Knowledge: Answers and guidance from product experts
* Support: Everything you need for technical support, e.g Enable HTTPS, Upgrade guide
* Security: Security services and tools to protect your software