version: "3"
services:
v2ray:
image: v2ray/official
container_name: v2ray
restart: always
command: v2ray -config=/etc/v2ray/config.json
ports:
- "8888:8888"
#- "127.0.0.1:8889:8889"
volumes:
- ./v2ray:/etc/v2ray
#- /etc/v2ray/v2ray.crt:/etc/v2ray/v2ray.crt
#- /etc/v2ray/v2ray.key:/etc/v2ray/v2ray.key
可以在这个网站生成: https://intmainreturn0.com/v2ray-config-gen/
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": {
"port": 8888,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "3acae2d6-3612-fdba-2c53-d6fe3344562",
"level": 1,
"alterId": 100
}
]
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
},
"inboundDetour": [],
"outboundDetour": [
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "blocked"
}
]
}
}
}
deepxl 1月 21st, 2021
Posted In: Uncategorized
version: '3'
networks:
nginxphp:
services:
nginx:
image: nginx:latest
container_name: nginx
volumes:
- ./data/conf:/etc/nginx/conf.d
- ./data/var/www:/var/www
ports:
- "80:80"
- "443:443"
depends_on:
- php-fpm
networks:
- nginxphp
php-fpm:
image: crunchgeek/php-fpm:7.3
container_name: php-fpm
volumes:
- ./data/var/www:/var/www
ports:
- "127.0.0.1:9000:9000"
networks:
- nginxphp
####
admin 1月 19th, 2021
Posted In: Uncategorized
version: ‘3’
services:
mysql:
container_name: mysql5.5
image: mysql:5.5.44
ports:
– “3306:3306”
environment:
MYSQL_ROOT_PASSWORD: “123456”
MYSQL_USER: ‘csroot’
MYSQL_PASS: ‘cs123456’
restart: always
volumes:
– “./db:/var/lib/mysql”
– “./conf/my.cnf:/etc/my.cnf”
– “./init:/docker-entrypoint-initdb.d/”
deploy:
resources:
limits:
cpus: ‘0.2’
memory: 100M
#reservations:
#cpus: ‘0.2’
#memory: 200M
deepxl 1月 19th, 2021
Posted In: Uncategorized
docker 下构建openvpn
sudo sysctl -w net.ipv4.conf.default.accept_source_route=1
sudo sysctl -w net.ipv4.conf.all.rp_filter=0
sudo sysctl -w net.ipv4.ip_forward=1
docker run -v /etc/openvpn:/etc/openvpn –rm kylemanna/openvpn ovpn_genconfig -u udp://47.88.222.231
docker run -v /etc/openvpn:/etc/openvpn –rm -it kylemanna/openvpn ovpn_initpki
docker run -v /etc/openvpn:/etc/openvpn -d -p 1194:1194/udp –privileged kylemanna/openvpn
===
cd /etc/openvpn
NoPassWd:
docker run -v /etc/openvpn:/etc/openvpn –rm -it kylemanna/openvpn easyrsa build-client-full CLIENTNAME nopass
docker run -v /etc/openvpn:/etc/openvpn –rm kylemanna/openvpn ovpn_getclient CLIENTNAME > myopenvpn.ovpn
curl –upload-file ./myopenvpn.ovpn https://transfer.sh/myopenvpn.ovpn
deepxl 2月 25th, 2018
Posted In: Uncategorized
表示“方式”、“方法”,注意以下用法:
1. 表示用某种方法或按某种方式,通常用介词 in(此介词有时可省略)。如:
Do it (in) your own way. 按你自己的方法做吧。
Please do not talk (in) that way. 请不要那样说。
2. 表示做某事的方式或方法,其后可接不定式或 of doing sth。
如:
It’s the best way of studying [to study] English. 这是学习英语的最好方法。
There are different ways to do [of doing] it. 做这事有不同的办法。
3. 其后通常可直接跟一个定语从句(不用任何引导词),也可跟由that 或 in which 引导的定语从句,但是其后的从句不能由 how 来引导。如:
我不喜欢他说话的态度。
正:I don’t like the way he spoke.
正:I don’t like the way that he spoke.
正:I don’t like the way in which he spoke.
误:I don’t like the way how he spoke.
4. 注意以下各句 the way 的用法:
That’s the way (=how) he spoke. 那就是他说话的方式。
Nobody else loves you the way(=as) I do. 没有人像我这样爱你。
The way (=According as) you are studying now, you won’tmake much progress. 根据你现在学习情况来看,你不会有多大的进步。
deepxl 6月 29th, 2015
Posted In: Uncategorized