Skip to content

Instantly share code, notes, and snippets.

View wsgoggway's full-sized avatar
💭
Whatzuuuuuuuup!

Владимир Маничев wsgoggway

💭
Whatzuuuuuuuup!
View GitHub Profile
Backup:
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
Restore:
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres
@wsgoggway
wsgoggway / nginx_deployment.yaml
Created October 1, 2019 12:22 — forked from petitviolet/nginx_deployment.yaml
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-conf
data:
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
@wsgoggway
wsgoggway / caddy-cfg.yaml
Created October 1, 2019 12:22
Caddy K8s TLS
kind: ConfigMap
apiVersion: v1
metadata:
name: caddy-config
namespace: openfaas
labels:
app: caddy
data:
Caddyfile: |
sub.mydomain.com {