Kcptun shadowsocks in docker

server docker run -dt --restart="always" --name ssserver -p 8388:80 -p 443:443/udp mritd/shadowsocks -m "ss-server" -s "-s 0.0.0.0 -p 80 -m aes-256-cfb -k password --fast-open" -x -e "kcpserver" -k "-t 127.0.0.1:…

Docker创建新的网络

docker network create --driver bridge \ --subnet 172.21.0.0/16 \ --gateway 172.21.0.1 \ --subnet 2001:db8:2::/64 \ --gateway 2001:db8:2::1 \ --opt com.docker.network.bridge.name=new_net_name \ --opt com.docker.network.bridge.enable_icc=true \ --opt com.docker.network.driver.mtu=1492…

Zeronet in docker

version: "2" services: zeronet: image: nofish/zeronet ports: - "15441:15441" network_mode: bridge environment: - VIRTUAL_HOST=jia.zeronet - VIRTUAL_PORT=43110 docker-compose up 配合nginx和dnsmasq访问jia.zeronet…

安装ShadowsocksR客户端with Shorewall

用docker安装ShadowsocksR配合ipset,shorewall智能科技上网.. ShadowsocksR客户端 vim docker-compose.yml version: "2" services: ssr: container_name: ssr #image: kdaye/shadowsocksr image: registry.cn-hangzhou.aliyuncs.com/kj/shadowsocksr ports: - "1080:1080/tcp" - "1080:1080/udp" network_mode: host command: ss-redir -s your_server_ip -p 8388 -k…

安装Docker with Shorewall

由于我的HomeServer的NAT用的是shorewall..所以安装Docker也是需要配置下Shorewall的~ 首先安装Docker和Docker-compose pacman -Sy docker docker-compose 配置Shorewall /etc/shorewall/shorewall.conf: DOCKER=Yes /etc/shorewall/zones: #ZONE TYPE OPTIONS dock ipv4 #'dock' is just an example -- call it anything you like /etc/shorewall/policy: #SOURCE DEST POLICY LEVEL dock $FW REJECT dock all ACCEPT /etc/shorewall/interfaces: #ZONE…

安装Ghost with Nginx in Docker

创建个docker-compose文件 vim docker-compose.yml 内容 version: "2" services: ghost: image: ghost:alpine container_name: ghost volumes: - ./blog:/var/lib/ghost networks: - nginx-proxy environment: - VIRTUAL_HOST=kdaye.com,www.kdaye.com - LETSENCRYPT_HOST=kdaye.com,www.kdaye.com - LETSENCRYPT_EMAIL=K@kdaye.com networks:…

安装Nginx+nginx-proxy+letsencrypt in Docker

目的 在Docker运行Nginx,反代其他Docker container,例如本博客,Ghost 本章实现功能 自动创建的Ghost博客的Nginx配置 自动创建的Ghost博客的Let's encrypt的SSL证书 并运行 实例 mkdir nginx/volumes/templates -p git clone https://github.com/jwilder/nginx-proxy.git cp nginx-proxy/nginx.tmpl nginx/volumes/templates rm -rf nginx-proxy cd nginx 创建个docker-compose文件 vim docker-compose.yml 内容 version: "2" services: nginx: restart: unless-stopped…

安装Docker和Docker-compose

环境 ubuntu 16.04 1. 安装Docker Engine 删除旧版本 sudo apt-get remove docker docker-engine Docker CE 1.让apt使用https $ sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common 2.添加Docker’s official GPG key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - amd64 sudo add-apt-repository \ "deb [arch=amd64]…