docker-compose.yml 859 B

12345678910111213141516171819202122232425262728293031323334
  1. services:
  2. snell:
  3. build:
  4. context: .
  5. dockerfile: Dockerfile
  6. image: snell-server
  7. container_name: snell
  8. restart: unless-stopped
  9. ports:
  10. - "25011:25011"
  11. shadow-tls:
  12. image: ghcr.io/ihciah/shadow-tls:latest
  13. container_name: shadow-tls
  14. restart: unless-stopped
  15. ports:
  16. - "25344:25344"
  17. depends_on:
  18. - snell
  19. environment:
  20. - MODE=server
  21. - LISTEN=0.0.0.0:25344
  22. - SERVER=snell:25011
  23. - TLS=bing.com
  24. - PASSWORD=changeme
  25. - V3=1
  26. - MONOIO_FORCE_LEGACY_DRIVER=1
  27. # Mode: client or server
  28. # LISTEN: local listen address with port
  29. # SERVER: remote address with port
  30. # TLS: server name in sni for client mode(like xxx.com.cn)
  31. # server address with port for server mode(like xxx.com.cn:443)
  32. # PASSWORD: shadow-tls password
  33. # THREADS(optional): set threads number