Skip to content

Instantly share code, notes, and snippets.

View faghani's full-sized avatar
👨‍💻
...

alireza faghani faghani

👨‍💻
...
View GitHub Profile
@faghani
faghani / postmortem.md
Created May 16, 2023 10:01 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@faghani
faghani / docker_backup.py
Created April 19, 2019 19:17 — forked from firecat53/docker_backup.py
Backup docker volumes
#!/usr/bin/env python3
"""Backs up and restores data-only volumes to/from host backup directory using
rsync. Only backup named volumes, which is arbitrarily set to ones having a name
length < 40 characters.
1. Create a Docker image containing rsync (named rsync)
https://github.com/firecat53/dockerfiles/tree/master/rsync
``docker build -t rsync .``
@faghani
faghani / pod.yaml
Created December 11, 2018 21:55 — forked from matthewpalmer/pod.yaml
kubernetes nginx php-fpm pod
# Create a pod containing the PHP-FPM application (my-php-app)
# and nginx, each mounting the `shared-files` volume to their
# respective /var/www/html directories.
kind: Pod
apiVersion: v1
metadata:
name: phpfpm-nginx-example
spec:
volumes:
@faghani
faghani / Dockerfile
Created October 31, 2018 14:46 — forked from sandrokeil/Dockerfile
nginx with lua-resty-auto-ssl - On the fly (and free) SSL registration and renewal inside nginx with Let's Encrypt.
FROM alpine:3.5
ENV NGINX_VERSION 1.11.10
ENV LUAROCKS_VERSION 2.4.2
ENV NGX_DEVEL_KIT_VERSION 0.3.0
ENV LUA_NGINX_MODULE_VERSION 0.10.7
# or tell where to find Lua if using Lua instead:
ENV LUA_LIB /usr/lib
ENV LUA_INC /usr/include