Skip to content

Instantly share code, notes, and snippets.

View russmckendrick's full-sized avatar
📚
Writting the second edition of Learn Ansible.

Russ McKendrick russmckendrick

📚
Writting the second edition of Learn Ansible.
View GitHub Profile
version: "3"
services:
traefik:
image: traefik
command: --web --docker --docker.domain=local.media-glass.es --docker.watch --logLevel=DEBUG
networks:
- scale
ports:
- "80:80"
@russmckendrick
russmckendrick / docker-compose.yml
Created January 21, 2017 16:03
Minio Docker Compose
version: "3"
services:
minio1:
image: minio/minio
ports:
- "9000:9000"
networks:
- minionet
@russmckendrick
russmckendrick / windows.yml
Created December 2, 2016 08:37
Random Ansible file !!!
- name: Add russ.mckendrick user
win_user:
name: russ.mckendrick
password: "mymegasecurepassword"
groups: ["Users", "Administrators"]
- name: Install Git with Chocolatey
win_chocolatey:
name: "{{ item }}"
with_items:
@russmckendrick
russmckendrick / moby-counter.yml
Last active November 13, 2016 15:33
Example Kubernetes App
apiVersion: v1
kind: Service
metadata:
name: moby-counter-frontend
labels:
app: moby-counter
tier: frontend
spec:
type: NodePort
ports:

Keybase proof

I hereby claim:

  • I am russmckendrick on github.
  • I am russmckendrick (https://keybase.io/russmckendrick) on keybase.
  • I have a public key whose fingerprint is 2E4E D53D 2B85 7E9D 53DF 61B4 A839 AAD5 D221 7B93

To claim this, I am signing this object:

version: '2'
services:
wordpress:
container_name: my-wordpress-app
image: wordpress
ports:
- "80:80"
environment:
- "WORDPRESS_DB_HOST=mysql:3306"
- "WORDPRESS_DB_PASSWORD=password"
Server=zabbix.media-glass.es
Hostname=docker.media-glass.es
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
AllowRoot=1
UserParameter=xdocker.discovery,/etc/zabbix/scripts/container_discover.sh
LoadModulePath=/usr/local/lib/zabbix/agent/
LoadModule=zabbix_module_docker.so
@russmckendrick
russmckendrick / cadvisor.conf
Last active August 29, 2015 14:27
cadvisor start up scripts
description "cadvisor from google"
start on filesystem or runlevel [2345]
stop on runlevel [!2345]
respawn
umask 022
#nice
#chroot /
chdir /
#limit core <softlimit> <hardlimit>
@russmckendrick
russmckendrick / kibana.conf
Created July 7, 2015 20:44
kibana nginx config
server {
listen 80;
server_name elk.mydomain.com;
auth_basic "Restricted Access";
auth_basic_user_file /etc/nginx/htpasswd.users;
location / {
proxy_pass http://localhost:5601;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
@russmckendrick
russmckendrick / Vagrantfile
Last active August 29, 2015 14:21
Vagrantfile for OpenStack
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
BOX_NAME = 'russmckendrick/centos7'
BOX_IP = '192.168.0.42'
HOSTNAME = 'rdo'
DOMAIN = 'vagrant.dev'
Vagrant.require_version '>= 1.4.0'