Skip to content

Instantly share code, notes, and snippets.

View arsalanses's full-sized avatar
🧠
lets play chess

Arsalan Sefidgar arsalanses

🧠
lets play chess
View GitHub Profile
@arsalanses
arsalanses / compose.yml
Last active April 5, 2024 10:03
Web Interface for the Docker Registry + forward auth service
services:
traefik:
image: traefik:v2.11.0
command: --providers.docker
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- web
@arsalanses
arsalanses / manifest.yml
Created February 21, 2024 12:23
nettools kube manifest
apiVersion: v1
kind: Pod
metadata:
name: busyboy
namespace: arsalan-dev
spec:
restartPolicy: Never
nodeSelector:
kubernetes.io/hostname: 123.123.123.123
containers:
@arsalanses
arsalanses / docker-compose.yml
Last active February 22, 2024 09:19
logging from file into stdio
services:
tail-from-file:
image: busybox
container_name: tail-from-file
restart: unless-stopped
volumes:
- /var/log/system.log:/var/log/stream.log
command:
- tail
- -f
@arsalanses
arsalanses / docker-compose.yml
Last active May 18, 2024 08:06
mysql router
services:
mysql:
image: hub.hamdocker.ir/bitnami/mysql:8.0
ports:
- '127.0.0.1:3306:3306'
# volumes:
# - 'mysql_data:/bitnami/mysql/data'
environment:
- ALLOW_EMPTY_PASSWORD=yes
healthcheck:
@arsalanses
arsalanses / .gitconfig
Created February 17, 2024 05:54
includeIf: separate git configs for personal and work
[includeIf "gitdir:~/code/<work>/"]
path = "~/code/<work>/.gitconfig"
@arsalanses
arsalanses / docker-compose.yml
Last active February 26, 2024 12:09
chartmuseum
services:
ui:
image: idobry/chartmuseumui:latest
environment:
CHART_MUSEUM_URL: "http://chartmuseum:8080"
ports:
- 80:8080
chartmuseum:
image: chartmuseum/chartmuseum:latest
@arsalanses
arsalanses / docker-compose.yml
Created January 30, 2024 13:48
elasticsearch
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.4
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m -Des.enforce.bootstrap.checks=true"
- "xpack.license.self_generated.type=basic"
- "xpack.security.enabled=false"
- "xpack.watcher.enabled=false"
- "xpack.graph.enabled=false"
- "xpack.ml.enabled=false"
@arsalanses
arsalanses / cgitrc
Created January 23, 2024 06:53
cgit
scan-path=/var/www/cgit/
cache-scanrc-ttl=1
css=/cgit-data/cgit.css
logo=/cgit-data/cgit.png
favicon=/cgit-data/favicon.ico
# =========================================
# enable-http-clone=1
@arsalanses
arsalanses / README.md
Last active January 13, 2024 15:28
kind Cluster

Basics

kind create cluster --config=kubecluster.yml

docker pull traefik/whoami:v1.10.1
kind load docker-image traefik/whoami:v1.10.1

kind delete cluster
@arsalanses
arsalanses / compose.yml
Created January 11, 2024 10:24
graylog
services:
mongo:
image: mongo:5.0.13
container_name: graylog_mongodb
# volumes:
# - mongo_data:/data/db
networks:
- graylog
elasticsearch: