d2ray/docker-compose.in

44 lines
1.4 KiB
Plaintext
Raw Normal View History

2021-01-16 22:53:44 +00:00
version: '3.0'
2020-05-04 09:16:02 +00:00
networks:
2021-01-16 22:53:44 +00:00
br-v2ray:
2020-05-04 09:16:02 +00:00
external: false
services:
nginx:
2021-01-16 22:53:44 +00:00
container_name: v2ray_nginx
2021-01-11 04:47:28 +00:00
image: linuxserver/swag
2020-05-04 09:16:02 +00:00
restart: always
cap_add:
- NET_ADMIN
networks:
2021-01-16 22:53:44 +00:00
- br-v2ray
2020-05-04 09:16:02 +00:00
environment:
- PUID={{ uid }}
- PGID={{ gid }}
- TZ=US/Eastern
- URL={{ domain }}
- SUBDOMAINS={{ subdomain }}
- VALIDATION=http
2021-01-16 22:53:44 +00:00
- EMAIL=dummy@dummy.com
2020-05-04 09:16:02 +00:00
- DHLEVEL=2048
2021-01-16 22:53:44 +00:00
- ONLY_SUBDOMAINS={{ subdomain_only }}
2020-05-04 09:16:02 +00:00
- STAGING=false
ports:
- 80:80
- 443:443
volumes:
2021-01-16 23:57:15 +00:00
- ./nginx/default:/config/nginx/site-confs/default
- ./nginx/logs:/config/log
2020-05-04 09:16:02 +00:00
v2ray:
2021-01-16 22:53:44 +00:00
container_name: v2ray_v2ray
2020-06-10 06:48:55 +00:00
image: teddysun/v2ray
2021-01-16 22:53:44 +00:00
restart: unless-stopped
2020-05-04 09:16:02 +00:00
networks:
2021-01-16 22:53:44 +00:00
- br-v2ray
2020-05-04 09:16:02 +00:00
command: ["v2ray","-config=/etc/v2ray/config.json"]
volumes:
2021-01-16 23:57:15 +00:00
- ./v2ray/config.json:/etc/v2ray/config.json
2021-01-16 22:53:44 +00:00
{{ watchtower }}