Docker examples :p, please check all services in docker-compose.yml
- Install Docker
- Clone project:
git clone https://github.com/jojoee/docker-examples.git
- Go to repository directory:
cd docker-examples
- Copy:
cp -a source/hello-node/. image/node/
- Create volumns folder:
mkdir ~/Volumns
- Add point domain name into host file
127.0.0.1 site91.doc
127.0.0.1 site92.doc
127.0.0.1 site101.doc
127.0.0.1 site102.doc
127.0.0.1 site111.doc
127.0.0.1 site112.doc
Then run: docker-compose up -d
- Install Composer
- Install Node.js
source/hello-php
- composer install
source/hello-node
- npm install -g yarn && yarn
docker-examples
├── image
└── source
- Deploy support
- Swarm mode
- Test script
- Merge similar services into one
- Load Balance
- Monitoring
- nginx (static)
http://localhost:8001
http://localhost:8001/image/test.png
http://localhost:8002
http://localhost:8002/image/test.png
- apache
- php
http://localhost:8011
- apache
- php
- mysql
http://localhost:8012
- apache (custom vhost)
- php
- mysql
http://localhost:8013
http://site91.doc:8013
http://site92.doc:8013
http://site92.doc:8013
http://localhost:8014
http://site101.doc:8014
http://site102.doc:8014
http://localhost:8015
- apache
- php (wordpress)
- mysql
http://localhost:8021
http://localhost:8022
http://localhost:8023
- node
http://localhost:8031
if want to try more please run
$ docker exec -it ctn_node /bin/bash
$ pm2 start index.js
http://localhost:8032
- node (no volumes)
http://localhost:8033
- nginx
- php (fpm)
- mysql
http://localhost:8041
http://site111.doc:8041
http://site112.doc:8041
- phpMyAdmin
http://localhost:9001
- adminer
http://localhost:9002