d2ray/docker-compose.in

61 lines
2.0 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-02-01 06:07:23 +00:00
br-d2ray:
2020-05-04 09:16:02 +00:00
external: false
2021-02-01 06:07:23 +00:00
driver: bridge
driver_opts:
com.docker.network.bridge.name: br-d2ray
enable_ipv6: false
ipam:
driver: default
config:
- subnet: 172.127.127.0/24
2020-05-04 09:16:02 +00:00
services:
2021-02-01 06:07:23 +00:00
d2ray_nginx:
container_name: d2ray_nginx
2021-01-11 04:47:28 +00:00
image: linuxserver/swag
2021-01-23 11:07:27 +00:00
restart: unless-stopped
2020-05-04 09:16:02 +00:00
cap_add:
- NET_ADMIN
networks:
2021-02-01 06:07:23 +00:00
- br-d2ray
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
volumes:
2021-02-01 06:07:23 +00:00
- ./nginx:/config
healthcheck:
test: ["CMD", "curl", "-f", "http://{{ subdomain }}.{{ domain }}:80"]
interval: 5s
timeout: 3s
retries: 30
d2ray_xray:
container_name: d2ray_xray
2021-01-23 11:07:27 +00:00
image: teddysun/xray
2021-01-16 22:53:44 +00:00
restart: unless-stopped
2021-02-01 06:07:23 +00:00
depends_on:
d2ray_nginx:
condition: service_healthy
2020-05-04 09:16:02 +00:00
networks:
2021-01-16 22:53:44 +00:00
- br-v2ray
2021-01-23 11:07:27 +00:00
ports:
- 443:443
2020-05-04 09:16:02 +00:00
volumes:
2021-02-01 06:07:23 +00:00
- ./nginx/etc:/le-etc
- ./xray:/etc/xray
2021-01-16 22:53:44 +00:00
{{ watchtower }}