Skip to content

Instantly share code, notes, and snippets.

View potikanond's full-sized avatar

D. Potikanond potikanond

  • Computer Engineering, CMU
  • Thailand
View GitHub Profile
@potikanond
potikanond / README.md
Last active August 31, 2018 08:37
Example#7: Automate the deploy Drupal+postgres app process

Example#3.7: Automate the deployment of Drupal+postgres app process

Create a project directory and the YAML file

Create a directory named example37 and the example37/docker-compose.yml file.

We will create drupal and postgres services. The drupal container is created with four mounted named volumes for four different drupal's directories: modules, profiles, sites and themes.

The postgres containers is created with postgres admin password of 1234.

@potikanond
potikanond / README.md
Last active August 31, 2018 08:33
Example#3.6: Automate the deployment of reverse proxy+web app

Example#3.6: Automate the deployment of reverse proxy+web app

Create a project directory on a host

First, we need to create a directory example36 on the host.

$ mkdir example36
$ cd example36
@potikanond
potikanond / README.md
Last active August 31, 2018 08:27
Example#3.5: Jekyll developer environment
@potikanond
potikanond / README.md
Last active January 12, 2023 12:30
Example#3.2: build a simple Node.js app image
@potikanond
potikanond / README.md
Last active August 28, 2018 06:38
How to access VirtualBox shared folder from Ubuntu Server VM
@potikanond
potikanond / README.md
Last active August 27, 2018 15:14
How to add SSH key to GitHub

How to add SSH key to GitHub

Generate a SSH key

$ ssh-keygen

This will generate ssh private/public key inside the ~/.ssh/.

@potikanond
potikanond / README.md
Last active August 31, 2018 08:35
Example#3.8: Automate the build and deploy Node.js+MongoDB app process

Example#3.8: Automate the build and deployment of Node.js+MongoDB app process

This example shows how to use docker-compose to help deploy multiple containers at once. We need to create a docker-compose.yml which is in the YAML format. This file describes the docker engine how to create the Node.js and MongoDB containers. The Node.js container will be build from its Dockerfile inside the application directory. While the MongoDB container will be created from the MongodB official image.

Note: we will work on this example in the directory of project docker-node-sample3.

@potikanond
potikanond / README.md
Last active August 31, 2018 00:53
Example#3.3: How to deploy a simple Node.js+MongoDB app
@potikanond
potikanond / README.md
Last active September 5, 2018 03:32
Example3.1: How to create, test, tag, push and pull an Nginx docker image

Example#3.1: How to create, test, tag, push and pull an Nginx docker image

On Ubuntu Docker host, create an empty directory, ~/example31

$ mkdir example31
$ cd example31

Create index.html and about.html inside the example31 directory

@potikanond
potikanond / README.md
Last active August 26, 2018 15:11
Ex2.6: Wordpress Application

Ex2.6: Wordpress Application

Start MySQL container with specified MySQL root password

$ docker container run -d --name my_db -e MYSQL_ROOT_PASSWORD=1234 mysql:5.7

Start Wordpress container and 'link' with MySQL container

` $ docker container run --name my_wordpress --link my_mysql:mysql -p 8081:80 wordpress