-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
53 lines (53 loc) · 1.45 KB
/
compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1420
services:
tunnel:
image: cloudflare/cloudflared
restart: unless-stopped
environment:
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
# --loglevel debug
command: tunnel --no-autoupdate run --protocol http2 --token ${TUNNEL_TOKEN}
warp:
image: caomingjun/warp # https://github.com/cmj2002/warp-docker
#build:
# context: ../warp-docker
# args:
# - GOST_VERSION=2.11.5
# - WARP_VERSION=2024.11.1
# - COMMIT_SHA=d988156
restart: always
# SOCKS5 proxy...
#ports:
# - "127.0.0.1:1080:1080"
environment:
- WARP_SLEEP=2
#- WARP_LICENSE_KEY= # optional for WARP+
cap_add:
# need for vpn tunnel things
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv4.conf.all.src_valid_mark=1
volumes:
- ./_data/warp:/var/lib/cloudflare-warp
dlpy:
network_mode: "service:warp"
build: dlpy
restart: unless-stopped
environment:
- MY_DOMAIN=${MY_DOMAIN}
- SECRET_ENDPOINT=${SECRET_ENDPOINT}
- S3_BUCKET=${S3_BUCKET}
- S3_ENDPOINT=${S3_ENDPOINT}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
volumes:
- ./_data/public_html:/public_html
- ./dlpy/main.py:/app/main.py