Deploy Devdiary On Your Own Servers

You can deploy Devdiary on your own servers with docker images. The following is the procedure for different platforms:

Deploy Using Docker:

You can deploy Devdiary on your own servers using docker-compose. The following are the steps to deploy Devdiary on your own servers using docker and docker-compose.

  • Step 1 : Install docker and docker-compose on your server
  • Step 2 : Create a project directory named devdiary
  • Step 3 : Download docker-compose.yml from here
  • Step 4 : Place the docker-compose.yml inside your project directory
  • Step 5 : Issue command : docker-compose up‘ inside your project directory.

This will bring download all the docker images required for deploying Devdiary and deploys it on your server. If you like to change the config of Devdiary, you can do it by changing docker-compose.yml file.

  • Step 6 : Access your deployment from the browser using the URL: http://<server-ip>:3000
  • Step 7 : You can change the default port inside docker-compose.yml. For example, if you want to run the server on port 80, you can change the line – “3000:3000” to – “80:3000” in docker-compose.yml and run the command ‘docker-compose up‘ again.

Deploy On Kubernetes:

You can deploy Devdiary on your own kubernetes servers by following the steps mentioned below:

  • Step 1: Create a volume for storing the Devdiary database using the command:
    kubectl apply -f https://raw.githubusercontent.com/mmredsolutions/deploy-devdiary/master/kubernetes/devdiary-db-volume.yml
  • Step 2: Create devdiary-db-configmap configmap using the command:
    kubectl apply -f https://raw.githubusercontent.com/mmredsolutions/deploy-devdiary/master/kubernetes/devdiary-db-configmap.yaml
  • Step 3: Create devdiary-db deployment using the command:
    kubectl apply -f https://raw.githubusercontent.com/mmredsolutions/deploy-devdiary/master/kubernetes/devdiary-db-deployment.yml
  • Step 4: Create devdiary-db service using the command:
    kubectl apply -f https://raw.githubusercontent.com/mmredsolutions/deploy-devdiary/master/kubernetes/devdiary-db-service.yaml
  • Step 5: Create devdiary-web deployment using the command:
    kubectl apply -f https://raw.githubusercontent.com/mmredsolutions/deploy-devdiary/master/kubernetes/devdiary-web-deployment.yml
  • Step 6: Create devdiary-web service using the command:
    kubectl apply -f https://raw.githubusercontent.com/mmredsolutions/deploy-devdiary/master/kubernetes/devdiary-web-service.yaml
  • Step 7 : Access your deployment from the browser using the URL: http://<kubernetes-node-ip>:<devdiary-service-nodeport>

Note: You can change the deployment configuration by downloading the above yml files and modifying them and then deploying accordingly.

Leave a Reply

Your email address will not be published. Required fields are marked *