Sign inSign up

zhangsean/webfunny_monitor

By zhangsean

Updated almost 5 years ago

Minimal image for webfunny_monitor on alpine.

Image
0

1.5K

zhangsean/webfunny_monitor repository overview

zhangsean/webfunny_monitor

Minimal image for webfunny_monitor on alpine.

DockerHub Badge

Usage

# Start a MySQL DB using docker or manual
docker run -itd --name webfunnydb \
    -p 3306:3306 \
    -e MYSQL_ROOT_PASSWORD=root \
    -e MYSQL_USER=webfunny \
    -e MYSQL_PASSWORD=123456 \
    -e MYSQL_DATABASE=webfunny-db \
    -v /data/webfunny-db:/var/lib/mysql \
    mysql:5.7

# Start webfunny_monitor using docker link
docker run -itd --name webfunny \
    -p 8010-8011:8010-8011 \
    --link webfunnydb \
    -e DB_HOST=webfunnydb \
    -e DB_PORT=3306 \
    -e DB_NAME=webfunny-db \
    -e DB_USER=webfunny \
    -e DB_PASS=123456 \
    zhangsean/webfunny_monitor

# Start webfunny_monitor using outer db
docker run -itd --name webfunny \
    -p 8010-8011:8010-8011 \
    -e DB_HOST=10.0.0.1 \
    -e DB_PORT=3306 \
    -e DB_NAME=webfunny-db \
    -e DB_USER=webfunny \
    -e DB_PASS=123456 \
    zhangsean/webfunny_monitor

# See the console log for quick start
docker logs -f webfunny

Environment variables

NameTypeDefaultRequiredDescription
DB_HOSTString*DB hostname or IP
DB_PORTInt3306DB port
DB_NAMEStringwebfunny-dbDatabase name
DB_USERString*DB username
DB_PASSString*DB password

Tag summary

Content type

Image

Digest

Size

97.1 MB

Last updated

almost 5 years ago

docker pull zhangsean/webfunny_monitor