Docker: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
No edit summary
(updated applications list)
Line 4: Line 4:
=== docker01 ===
=== docker01 ===
* Debian jessie minimal
* Debian jessie minimal
* Access: Matthias, Severin
* Access: Matthias, Severin, Heiko




Line 11: Line 11:
** Zabbix
** Zabbix
** Bind (DNS)
** Bind (DNS)
** Node Red
** SignMan for Wall of Monitors
** Freeboard dashboards
** <del>Node Red</del> (currently not active>


core@coreos10 ~ $ date  
All listed applications are started automatically using systemd unit files.
Sun Oct  9 21:04:57 UTC 2016
 
core@coreos10 ~ $ docker ps
<pre style="overflow:scroll; white-space: pre;">
CONTAINER ID   IMAGE                                    COMMAND                  CREATED            STATUS         PORTS                                                           NAMES
severin@docker01:~$ date
b6f3db6400c0    nodered/node-red-docker                  "npm start -- --userD34 hours ago        Up 34 hours    0.0.0.0:1880->1880/tcp                                               nodered
Tue Nov 15 23:09:36 CET 2016
27bfebed0345    sameersbn/bind:latest                    "/sbin/entrypoint.sh "  35 hours ago       Up 35 hours     0.0.0.0:53->53/tcp, 0.0.0.0:10000->10000/tcp, 0.0.0.0:53->53/udp     bind
severin@docker01:~$ docker ps
b9c13a2e7c3a    monitoringartist/zabbix-db-mariadb      "/run.sh"                4 weeks ago        Up 4 weeks      3306/tcp                                                             zabbix-db
CONTAINER ID       IMAGE                                    COMMAND                  CREATED            STATUS             PORTS                                                             NAMES
63e133f80c4d    monitoringartist/zabbix-3.0-xxl:latest  "/config/bootstrap.sh4 weeks ago        Up 4 weeks      162/udp, 0.0.0.0:10051->10051/tcp, 10052/tcp, 0.0.0.0:8080->80/tcp  zabbix-server
a32a902612d8        monitoringartist/zabbix-3.0-xxl:latest  "/config/bootstrap.sh7 minutes ago       Up 6 minutes       80/tcp, 10052/tcp, 162/udp, 0.0.0.0:10051->10051/tcp               zabbix
bfd538f2fb0a    siedi/zabbix-autossh                    "/autossh-start.sh za"  4 weeks ago        Up 4 weeks      10050/tcp                                                           jupiter-tunnel
1e6224a17328        sameersbn/bind:latest                    "/sbin/entrypoint.sh "  6 hours ago         Up 6 hours         0.0.0.0:53->53/tcp, 0.0.0.0:10000->10000/tcp, 0.0.0.0:53->53/udp   bind
03d737036a2e    siedi/zabbix-autossh                    "/autossh-start.sh za"  4 weeks ago        Up 4 weeks      10050/tcp                                                           mars-tunnel
f8a81a6f9046        jwilder/nginx-proxy                      "/app/docker-entrypoi"  7 hours ago        Up 7 hours          0.0.0.0:80->80/tcp, 443/tcp                                        nginx-proxy
511c8852e487        monitoringartist/zabbix-db-mariadb      "/run.sh"                7 hours ago        Up 7 hours          3306/tcp                                                           zabbix-db
299d52a61bc6        tiefpunkt/signman                        "flask run --host=0.0"  7 hours ago        Up 7 hours          8080/tcp                                                          signman
d15878ea59ec        nginx:alpine                            "nginx -g 'daemon off"  7 hours ago        Up 7 hours          80/tcp, 443/tcp                                                   dashboard
568f32781b73        siedi/zabbix-autossh                    "/autossh-start.sh za"  7 hours ago        Up 7 hours          10050/tcp                                                         mars-tunnel
0c253eb3eb5e        siedi/zabbix-autossh                    "/autossh-start.sh za"  7 hours ago        Up 7 hours          10050/tcp                                                         jupiter-tunnel
ec838d62508d        munichmakerlab/hourcounter              "flask run --host=0.0"  7 hours ago        Up 7 hours          8080/tcp                                                          hourcounter
</pre>


=== Bind (DNS) ===
=== Bind (DNS) ===

Revision as of 00:14, 16 November 2016

We currently have one docker host, running a bunch of different containers.

Hosts

docker01

  • Debian jessie minimal
  • Access: Matthias, Severin, Heiko


Containers

  • Applications
    • Zabbix
    • Bind (DNS)
    • SignMan for Wall of Monitors
    • Freeboard dashboards
    • Node Red (currently not active>

All listed applications are started automatically using systemd unit files.

severin@docker01:~$ date
Tue Nov 15 23:09:36 CET 2016
severin@docker01:~$ docker ps
CONTAINER ID        IMAGE                                    COMMAND                  CREATED             STATUS              PORTS                                                              NAMES
a32a902612d8        monitoringartist/zabbix-3.0-xxl:latest   "/config/bootstrap.sh"   7 minutes ago       Up 6 minutes        80/tcp, 10052/tcp, 162/udp, 0.0.0.0:10051->10051/tcp               zabbix
1e6224a17328        sameersbn/bind:latest                    "/sbin/entrypoint.sh "   6 hours ago         Up 6 hours          0.0.0.0:53->53/tcp, 0.0.0.0:10000->10000/tcp, 0.0.0.0:53->53/udp   bind
f8a81a6f9046        jwilder/nginx-proxy                      "/app/docker-entrypoi"   7 hours ago         Up 7 hours          0.0.0.0:80->80/tcp, 443/tcp                                        nginx-proxy
511c8852e487        monitoringartist/zabbix-db-mariadb       "/run.sh"                7 hours ago         Up 7 hours          3306/tcp                                                           zabbix-db
299d52a61bc6        tiefpunkt/signman                        "flask run --host=0.0"   7 hours ago         Up 7 hours          8080/tcp                                                           signman
d15878ea59ec        nginx:alpine                             "nginx -g 'daemon off"   7 hours ago         Up 7 hours          80/tcp, 443/tcp                                                    dashboard
568f32781b73        siedi/zabbix-autossh                     "/autossh-start.sh za"   7 hours ago         Up 7 hours          10050/tcp                                                          mars-tunnel
0c253eb3eb5e        siedi/zabbix-autossh                     "/autossh-start.sh za"   7 hours ago         Up 7 hours          10050/tcp                                                          jupiter-tunnel
ec838d62508d        munichmakerlab/hourcounter               "flask run --host=0.0"   7 hours ago         Up 7 hours          8080/tcp                                                           hourcounter

Bind (DNS)

docker run --name bind -d --restart=always \
  --publish 53:53/tcp --publish 53:53/udp --publish 10000:10000/tcp \
  --volume /srv/bind:/data \
  --env ROOT_PASSWORD=<PASSWORD> \
  sameersbn/bind:latest

Docker image with Bind as DNS Server and Webmin for Administration. See details at http://www.damagehead.com/blog/2015/04/28/deploying-a-dns-server-using-docker/

Node RED

docker run ---name nodered d --restart=always \
  --publish 1880:1880 \
  --volume /srv/node-red:/data \
  nodered/node-red-docker

nginx-proxy

https://github.com/jwilder/nginx-proxy

docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy

Freeboard

Dasboards: https://github.com/Freeboard/freeboard.git

mkdir /srv/dashboard
cd /srv/dashboard
git clone https://github.com/Freeboard/freeboard.git
docker run -it --rm -v /srv/dashboard/freeboard:/data digitallyseamless/nodejs-bower-grunt bash
> npm install
> grunt
> exit

docker run -d \
  --name dashboard \
  -v /srv/dashboard/freeboard:/usr/share/nginx/html:ro \
  -e VIRTUAL_HOST=dashboard,dashboard.intern.munichmakerlab.de \
  nginx:alpine

SignMan

git clone https://github.com/tiefpunkt/signman.git
docker build -t "tiefpunkt/signman" server

docker run -d \
  --name signman \
  -v /srv/signman:/data:rw \
  -e VIRTUAL_HOST=signman,signman.intern.munichmakerlab.de \
  tiefpunkt/signman

HourCounter

docker run -d \
  --name=hourcounter \
  -v /srv/hourcounter:/data \
  -e "VIRTUAL_HOST=hourcounter,hourcounter.intern.munichmakerlab.de" \
  munichmakerlab/hourcounter