20 lines
450 B
YAML
20 lines
450 B
YAML
services:
|
|
pyxray:
|
|
image: pyxray:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: pyxray
|
|
restart: unless-stopped
|
|
privileged: true
|
|
network_mode: host
|
|
environment:
|
|
PYXRAY_HOST: 127.0.0.1
|
|
PYXRAY_PORT: 13999
|
|
PYXRAY_XRAY_DIR: /config/xray
|
|
volumes:
|
|
- ./data:/config
|
|
- /lib/modules:/lib/modules:ro
|
|
- /etc/resolv.conf:/etc/resolv.conf
|
|
stop_grace_period: 15s
|