first add
This commit is contained in:
32
server/docker-compose.yml
Normal file
32
server/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
caddy-http:
|
||||
image: caddy-l4:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.caddy-l4
|
||||
container_name: caddy-http
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80/tcp"
|
||||
- "443:443/tcp"
|
||||
environment:
|
||||
- CADDY_ADMIN=:2019
|
||||
env_file:
|
||||
- ./caddy/env/caddy.env
|
||||
volumes:
|
||||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- ./caddy/site:/usr/src/www:ro
|
||||
- ./caddy/ssl:/data/caddy/certificates
|
||||
- ./caddy/log:/data/log
|
||||
depends_on:
|
||||
- v2ray
|
||||
|
||||
v2ray:
|
||||
image: v2fly/v2fly-core:latest
|
||||
container_name: v2ray
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./v2ray/config.json:/etc/v2ray/config.json:ro
|
||||
command: ["run", "-c", "/etc/v2ray/config.json"]
|
||||
Reference in New Issue
Block a user