mirror of
https://github.com/dndx/phantun.git
synced 2025-09-20 06:04:31 +08:00
chore(docker): add Docker image build. Thanks @pexcn for the contributions!
Co-authored-by: Datong Sun <dndx@idndx.com>
This commit is contained in:
26
docker/docker-compose.yml
Normal file
26
docker/docker-compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
phantun-server:
|
||||
image: phantun
|
||||
container_name: phantun-server
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
privileged: true
|
||||
environment:
|
||||
USE_IPTABLES_NFT_BACKEND: 0
|
||||
RUST_LOG: INFO
|
||||
command: >
|
||||
phantun-server --local 1985 --remote 127.0.0.1:1984 --ipv4-only
|
||||
|
||||
phantun-client:
|
||||
image: phantun
|
||||
container_name: phantun-client
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
privileged: true
|
||||
environment:
|
||||
USE_IPTABLES_NFT_BACKEND: 0
|
||||
RUST_LOG: INFO
|
||||
command: >
|
||||
phantun-client --local 127.0.0.1:1984 --remote 11.22.33.44:1985 --ipv4-only
|
Reference in New Issue
Block a user