docker-compose.yml 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: "3"
  2. services:
  3. natter-nginx-cf:
  4. command: -e /opt/cf-redir.py -p 18888
  5. volumes:
  6. - ./cf-redir.py:/opt/cf-redir.py
  7. environment:
  8. - TZ=Asia/Shanghai
  9. network_mode: host
  10. image: nattertool/natter
  11. restart: always
  12. depends_on:
  13. - nginx
  14. nginx:
  15. volumes:
  16. - ./html:/usr/share/nginx/html
  17. ports:
  18. - "18888:80"
  19. environment:
  20. - TZ=Asia/Shanghai
  21. image: nginx
  22. restart: always
  23. natter-v2fly:
  24. command: -e /opt/v2subsc.py -p 19999
  25. volumes:
  26. - ./v2subsc.py:/opt/v2subsc.py
  27. - ./html:/usr/share/nginx/html
  28. - ./config.json:/etc/v2ray/config.json
  29. environment:
  30. - TZ=Asia/Shanghai
  31. network_mode: host
  32. image: nattertool/natter
  33. restart: always
  34. depends_on:
  35. - v2fly
  36. v2fly:
  37. command: run -c /etc/v2ray/config.json
  38. volumes:
  39. - ./config.json:/etc/v2ray/config.json
  40. environment:
  41. - TZ=Asia/Shanghai
  42. network_mode: host
  43. image: v2fly/v2fly-core
  44. restart: always