Академический Документы
Профессиональный Документы
Культура Документы
Allows a user to configure the email settings. The following inputs can be provided.
1. SMTP Server & Port the server that will be used to send email alerts for new user sign
ups or when performance issues occur
2. FROM Email Address the email address used to send confirmations to new user sign
ups (e.g. support@<your-domain>.com)
3. BCC Email Address the email address that should be included in BCC when new users
sign up
1.
2.
3.
4.
5.
dchq/dchq-on-premise-v2-tomcat:latest-v2
dchq/dchq-on-premise-v2-rabbitmq:latest-v2
dchq/dchq-on-premise-v2-postgres:latest-v2
dchq/dchq-on-premise-v2-redis:latest-v2
dchq/dchq-on-premise-v2-solr:latest-v2
Runs the containers with all the environment variable bindings needed
1. Note: The RabbitMQ & Postgres passwords are randomly generated using 36
alphanumeric characters
sudo su
chmod 700 dchq_server_install.sh
./dchq_server_install.sh
You will be prompted to set up the email settings (optional) and the proxy (optional). If you type
N, the installation will go through and run all the containers needed for DCHQ On-Premise. The
installation should not take more than 10 minutes depending on your bandwidth and how fast
the images can be pulled from Docker Hub.
Database Password
RabbitMQ Password
DCHQ On-Premise URL & Default Login Credentials
Make sure that you save this information for your records.
Log into DCHQ On-Premise using the default credentials (admin@dchq.io / admin123).
In order to ensure that new hosts registered can establish communication with RabbitMQ and
that the agent can be installed correctly, please update the System Setting page from the
Manage drop-down.
Here are the entries that you need to update:
dchq.agent.script.url this is the location of the DCHQ agent install script. Its
currently hosted on DCHQ.cos software download page as well as on Dropbox
1. http://dchq.co/uploads/3/5/3/5/3535863/dchq_agent_install_v2.sh
2. https://www.dropbox.com/s/fxys4nyhy7t209h/dchq_agent_install_v2.sh?dl=1
However many customers may want to host this script on Amazon S3 or on a local
server. So just ensure that this script is accessible from the hosts that you will register on
DCHQ On-Premise to orchestrate Docker app deployments.
dchq.agent.connect.ip this is the public IP of the host thats running DCHQ OnPremise
dchq.agent.connect.port this is the host port that is mapped to RabbitMQs port 5672.
By default, this is 32902 but you can always run docker ps to make sure that youre
copying the right port
dchq.base.url this is the URL that is listed in the installation complete confirmation
message. By default, its
o <Public IP of DCHQ On-Premise Host>:32901
You can run docker ps to ensure that youre copying the right host port that is mapped to
Tomcats port 8080.
Automate the provisioning of Linux hosts on any of the 12 cloud providers we support
(e.g. OpenStack, CloudStack, AWS, DigitalOcean, Rackspace, Microsoft Azure,
SoftLayer, Google Compute Engine, etc.), or
Register an existing Linux host that could be running anywhere
Before we can register a Linux host, we need to create a cluster. This can be done by navigating
to Manage > Clusters and then clicking on the + button. In the recorded video, we made things
simple and selected Docker networking.
Cluster: Select the cluster that youll be associating this server with
IMPORTANT once you click Save, an auto-generated script will be provided that needs to be
executed on the Linux host youre trying to add.
The script expects at least 3 arguments and would like something like this:
curl -Ls <dchq.agent.script.url> | bash -s <DCHQ Server Key> <dchq.agent.connect.ip>
<dchq.agent.connect.port>
All of these parameters can be overridden in the System Settings page by the Cloud Admin.
Note that if Weave had been enabled on this cluster, then the script would follow this format.
Registering the 1st Server in the Weave Cluster
curl -Ls <dchq.agent.script.url> | bash -s <DCHQ Server Key> <dchq.agent.connect.ip>
<dchq.agent.connect.port> weave.local <weave-password>
where <weave.password> is a random password that you can pass.
Registering Additional Servers in the Weave Cluster
curl -Ls <dchq.agent.script.url> | bash -s <DCHQ Server Key> <dchq.agent.connect.ip>
<dchq.agent.connect.port> weave.local <weave-password> <weave.ip>
where <weave.ip> is the IP address of the 1st server in the Weave cluster
environment:
- WORDPRESS_DB_PASSWORD={{MySQL|MYSQL_ROOT_PASSWORD}}
- WORDPRESS_DB_HOST={{MySQL|container_ip}}:3306
- WORDPRESS_DB_USER={{MySQL|MYSQL_USER}}
- WORDPRESS_DB_NAME={{MySQL|MYSQL_DATABASE}}
MySQL:
image: mysql:latest
mem_limit: 1g
publish_all: false
environment:
- MYSQL_USER=root
- MYSQL_DATABASE=wordpress
- MYSQL_ROOT_PASSWORD={{alphanumeric | 12}}
Step 11: Request the Wordpress application from the SelfService Library
Navigate to Library and click Run on the Wordpress application.
Once the application is up and running, access the IP on the exposed port for Wordpress (i.e. the
host port mapped to 8080) to make sure that the app was successfully deployed.
If you run into any issues, please shoot me an email.
Contact US :
650-307-4783
814 Mission Street,
6th Floor San Francisco,
CA, 94103