[[docker]]

Docker

Just some scrambled mess on how I sometimes have docker deployed in my environment.

Deploy in Ubu 18.04

Portainer

Portainer is love, Portainer is life.

docker volume create portainer_data
docker run -d --name=Portainer --restart=always \
-p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data portainer/portainer

Smokeping

docker create \
  --name=smokeping \
  -e TZ=America/New_York \
  -p 8990:80 \
  -v /dockerMisc/smokePing/config:/config \
  -v /dockerMisc/smokePing/data:/data \
  --restart unless-stopped \
  linuxserver/smokeping

config/Targets

Whoogle

Whoogle Search

docker volume create portainer_data
docker run -d --name=Portainer --restart=always \
-p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data portainer/portainer

Caddy

docker run \
--publish 5000:5000 \
--restart=always --detach \
--name whoogle \
 benbusby/whoogle-search:latest

OpenVPN AS

https://hub.docker.com/r/linuxserver/openvpn-as

docker create \
  --name=OpenVPN-AS \
  --cap-add=NET_ADMIN \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=America/New_York \
  -p 943:943 \
  -p 9443:9443 \
  -p 1194:1194/udp \
  -v /dockerMisc/openvpn/config:/config \
  --restart unless-stopped \
  linuxserver/openvpn-as

Guacamole

First, deploy a base guac with no special extensions/whatever:

docker run \
  -p 8080:8080 \
  -v /dockerMisc/guac/config:/config \
  oznu/guacamole

Log in with the default credentials (guacadmin/guacadmin). If they don't take, restart the container. Create a new user, and disable or delete guacadmin. Stop the container.

Copy guacamole-auth-duo-1.0.0.jar from extensions-available to extensions.

Add the following to guacamole.properties:

# duo config
duo-api-hostname: api-fdafdasa.duosecurity.com
duo-integration-key: fdafdas
duo-secret-key: fdafdas
duo-application-key: fdafdsfds

Generate the duo-application-key with pwgen 40 (must be at least 40 chars!)

Edit the container's environment parameters to include EXTENSIONS=auth-duo (e.g. use duplicate/edit in portainer).

Make sure the proper hostname(s) are added to the “approved application hostnames” section for the app in Duo!

Wordpress

TBD

Pastebin

TBD

Plex?

I didn't think I would, yet here we are…

https://hub.docker.com/r/linuxserver/plex

Samba mount in fstab:

//jennay/media /smb cifs credentials=/home/john/.smbcreds,iocharset=utf8,vers=2.1,sec=ntlmssp 0 0

.smbcreds

username=derp
password=derp123

Do it! (Claim Key: https://www.plex.tv/claim/)

docker create \
  --name=Plex \
  --net=host \
  -e PUID=1000 \
  -e PGID=1000 \
  -e VERSION=docker \
  -e UMASK_SET=022 \
  -e PLEX_CLAIM=keyGoesHere \
  -v /dockerMisc/plex/config:/config \
  -v /smb/TV:/tv \
  -v /smb/Movies:/movies \
  --restart unless-stopped \
  linuxserver/plex

Dokuwiki

Transmission

docker create \
  --name=Transmission \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=America/New_York \
  -p 9091:9091 \
  -p 51413:51413 \
  -p 51413:51413/udp \
  -v /dockerMisc/transmission/config:/config \
  -v /dockerMisc/transmission/downloads:/downloads \
  -v /dockerMisc/transmission/watch:/watch \
  --restart unless-stopped \
  linuxserver/transmission

In settings.json, set “rpc-host-whitelist-enabled”: false

docker.txt · Last modified: 2020/05/31 10:54 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0