Code Monkey home page Code Monkey logo

docker-container-apps's Introduction

Container apps

container-apps-stacks examples of different webapps that run as a docker containers or docker compose stacks

PostgreSQL PG Admin with a volume to contain DB settings

Docs for container app

docker run  \
            --name pg_admin \
            -p 85:80 \
            -e "PGADMIN_DEFAULT_EMAIL=admin" \
            -e "PGADMIN_DEFAULT_PASSWORD=secret" \
            -v pgadmin-data \
            -d dpage/pgadmin4

PostgreSQL PG Admin

Run with port 85 in host network

docker run  \
            --name pg_admin_app \
            -e "[email protected]" \
            -e "PGADMIN_DEFAULT_PASSWORD=MY-Secret!" \
            -e "PGADMIN_LISTEN_PORT=85" \
            -v pgadmin-data --network="host" \
            -d dpage/pgadmin4

MYSQL php Admin

Access MySQLDBs

DOMAIN=mysql-multi.500
docker run                         \
          --name mySQL-Admin       \
          -p 8080:80               \
          -e PMA_HOST="$DOMAIN" \
          -e PMA_PORT=3306      \
          --link testsql:db
          -d phpmyadmin/phpmyadmin

Run Prometheus with bind volume

docker run  \
            --name prometheus_bindvol \
            --detach -p 127.0.0.1:9090:9090 \
            -v /tmp/prometheus.yml:/etc/prometheus.yml \
            prom/prometheus \
            --config.file=./data/prometheus.yml

Run Prometheus Creating aditional volume

docker run  \
            --name prometheus_vol \
            --detach -p 127.0.0.1:9090:9090 \
            -v /prometheus-data \
            prom/prometheus:latest --config.file=/prometheus-data/prometheus.yml

Bind-mount your prometheus.yml from the host by running

docker run -d --net=host \
            -v /$HOME/prometheus.yml:/etc/prometheus/prometheus.yml \
            --name prometheus-server \
            prom/prometheus

node exporter for local system at NodeExporternode_exporter

docker run -d \
            --name node_exporter \
            --net="host" \
            --pid="host" \
            -v "/:/host:ro,rslave" \
            quay.io/prometheus/node-exporter \
            --path.rootfs /host

Another way to run the Prometheus node_exporter

docker run -d \
    -v "/proc:/host/proc" \
    -v "/sys:/host/sys" \
    -v "/:/rootfs" \
    --net="host" \
    --name=prometheus \
    quay.io/prometheus/node-exporter:v0.13.0 \
        -collector.procfs /host/proc \
        -collector.sysfs /host/sys \
        -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"

Use pushGateway for short jobs

docker pull prom/pushgateway

docker run -d -p 9091:9091 --name push_gateway prom/pushgateway

Rancher Labs Kubernetes management tool

docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher:latest

Runnning a local docker registry

docker run -d -p 5000:5000 --restart=always --name container_registry registry:latest

Run Atlasian FishEye

docker run -d -p 8080:8080 --name fish_eye mswinarski/atlassian-fisheye

kubernetes analyzer

docker run -d \
        --net="host" \
        --name 'kube-opex-analytics' \
        -v /home/ws/kube-opex-analytics:/data \
        -e KOA_DB_LOCATION=/data/db \
        -e KOA_K8S_API_ENDPOINT=http://127.0.0.1:8001 \
        rchakode/kube-opex-analytics

Spinnaker Docs runing in Ruby container

docker run -d --name 'spinnaker-oss-docs' \
       -p 4000:4000 \
       --volume /home/ws/deployments/Spinnaker/oss-contribute-docs/code:/code \
       aleon1220/spinnaker-dev-docs

Jekyll containers

Build Jekyll site
docker run --rm -it --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" --env JEKYLL_ENV=production jekyll/jekyll:3.8 jekyll build

Serve Jekyll site

docker run --rm --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" --env JEKYLL_ENV=development -p 4000:4000 jekyll/jekyll:3.8 jekyll serve

docker-container-apps's People

Contributors

aleon1220 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.