mirror of
https://github.com/10h30/v2ray-nginx-docker.git
synced 2026-06-05 15:09:38 +09:00
24 lines
906 B
YAML
24 lines
906 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
################################################
|
|
#### v2ray server container #####
|
|
##############################################
|
|
achanchor-v2ray:
|
|
image: alphacodinghub/v2ray-nginx
|
|
container_name: achanchor-v2ray
|
|
restart: always
|
|
networks:
|
|
- web
|
|
labels:
|
|
#### Labels define the behavior and rules of the traefik proxy for this container ####
|
|
traefik.enable: true # <== Enable traefik to proxy this container
|
|
traefik.http.routers.achanchor-v2ray.rule: Host(`achanchor.${APP_DOMAIN}`) # <== Your Domain Name for the https rule
|
|
traefik.http.routers.achanchor-v2ray.entrypoints: web-secured # <== Defining entrypoint for https, **ref: line 31
|
|
traefik.http.routers.achanchor-v2ray.tls.certresolver: mytlschallenge # <== Defining certsresolvers for https
|
|
|
|
# networks and volumes
|
|
networks:
|
|
web:
|
|
external: true
|