Categories
Programming/php Service System/Linux/Unix*

webhd.monster.tw : Use docker , nextcloud (a dropbox like web storage opensource) …. and docker startup commands …

URL: https://webhd.monster.tw/

Shell script:

# ___commands___

#!/bin/sh
docker run -it \
  --name webhd \
  --hostname webhd.monster.tw \
  --link mysql:mysql \
  --restart=always \
  -p 443:443 \
  -v /home/rimmon/webhd.monster.tw/www:/var/www \
  -v /home/rimmon/webhd.monster.tw/Startup.sh:/Startup.sh \
  monster-webhd \
  /bin/bash /Startup.sh

# -----------
docker run --restart=always --hostname mysql --name mysql -e MYSQL_ROOT_PASSWORD=xxxxxx -d mysql:5.5

# -----------

docker run -it \
  --name lab \
  --hostname lab.monster.tw \
  -p 80:80 \
  -v /home/rimmon/www:/var/www/html \
  -v /etc/localtime:/etc/localtime:ro \
  rimmon/monster-lazy \
  /bin/bash /Startup.sh

# -----------
docker run \
  --restart=always \
  --name redis \
  --hostname redis \
  -v /etc/localtime:/etc/localtime:ro \
  -v data_redis:/data \
  -d redis
# -----------