Archive:Docker: Difference between revisions

From The Munich Maker Lab's Wiki
Jump to navigation Jump to search
(details on containers)
No edit summary
Line 2: Line 2:


== Hosts ==
== Hosts ==
=== coreos10 ===
=== docker01 ===
* CoreOS
* Debian jessie minimal
* Access: Matthias, Severin
* Access: Matthias, Severin


Reconfigure (SSH-Keys etc.):
ssh core@10.10.20.66
sudo vi /var/lib/coreos-install/user_data
sudo coreos-cloudinit -validate --from-file=/var/lib/coreos-install/user_data
sudo coreos-cloudinit --from-file=/var/lib/coreos-install/user_data


== Containers ==
== Containers ==
Line 45: Line 39:
   nodered/node-red-docker
   nodered/node-red-docker


=== nginx-proxy ===
https://github.com/jwilder/nginx-proxy
<pre>
docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy
</pre>
=== Freeboard ===
Dasboards: https://github.com/Freeboard/freeboard.git
<pre>
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
</pre>
=== SignMan ===
<pre>
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
</pre>
[[Category:Infrastructure]]
[[Category:Infrastructure]]

Revision as of 17:36, 6 November 2016

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

Hosts

docker01

  • Debian jessie minimal
  • Access: Matthias, Severin


Containers

  • Applications
    • Zabbix
    • Bind (DNS)
    • Node Red
core@coreos10 ~ $ date 
Sun Oct  9 21:04:57 UTC 2016
core@coreos10 ~ $ docker ps
CONTAINER ID    IMAGE                                    COMMAND                  CREATED             STATUS          PORTS                                                            NAMES
b6f3db6400c0    nodered/node-red-docker                  "npm start -- --userD"   34 hours ago        Up 34 hours     0.0.0.0:1880->1880/tcp                                               nodered
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
b9c13a2e7c3a    monitoringartist/zabbix-db-mariadb       "/run.sh"                4 weeks ago         Up 4 weeks      3306/tcp                                                             zabbix-db
63e133f80c4d    monitoringartist/zabbix-3.0-xxl:latest   "/config/bootstrap.sh"   4 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
bfd538f2fb0a    siedi/zabbix-autossh                     "/autossh-start.sh za"   4 weeks ago         Up 4 weeks      10050/tcp                                                            jupiter-tunnel
03d737036a2e    siedi/zabbix-autossh                     "/autossh-start.sh za"   4 weeks ago         Up 4 weeks      10050/tcp                                                            mars-tunnel

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