aboutsummaryrefslogtreecommitdiff
path: root/template/docker-compose.yaml.template
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-05-31 23:55:57 +0800
committercrupest <crupest@outlook.com>2023-05-31 23:55:57 +0800
commit86d3a7457ab703e60ebec351a8a550f8ee18de22 (patch)
tree2f5aa4fe9684a19463255b454162cc84d35ccc2a /template/docker-compose.yaml.template
parent7ae24cf08c0a590b3ce828c09b84e71280f52570 (diff)
downloadcrupest-86d3a7457ab703e60ebec351a8a550f8ee18de22.tar.gz
crupest-86d3a7457ab703e60ebec351a8a550f8ee18de22.tar.bz2
crupest-86d3a7457ab703e60ebec351a8a550f8ee18de22.zip
Add v2ray.
Diffstat (limited to 'template/docker-compose.yaml.template')
-rw-r--r--template/docker-compose.yaml.template16
1 files changed, 16 insertions, 0 deletions
diff --git a/template/docker-compose.yaml.template b/template/docker-compose.yaml.template
index ad3b0ab..b2e3fe9 100644
--- a/template/docker-compose.yaml.template
+++ b/template/docker-compose.yaml.template
@@ -65,6 +65,7 @@ services:
- code-server-network
- auto-certbot-network
- crupest-api-network
+ - v2ray-network
crupest-api:
pull_policy: build
@@ -80,6 +81,19 @@ services:
networks:
- crupest-api-network
+ crupest-v2ray:
+ image: v2fly/v2fly-core:latest
+ pull_policy: always
+ command: [ "-c", "/etc/v2fly/config.json" ]
+ container_name: crupest-v2ray
+ restart: on-failure:3
+ volumes:
+ - "./v2ray-config.json:/etc/v2fly/config.json:ro"
+ expose:
+ - "10000:10000"
+ networks:
+ - v2ray-network
+
auto-certbot:
pull_policy: build
depends_on:
@@ -163,6 +177,8 @@ networks:
code-server-network:
auto-certbot-network:
crupest-api-network:
+ v2ray-network:
+
volumes:
blog-public: