mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
[`tinc`][1] is a Virtual Private Network (VPN) daemon that uses tunnelling and
|
||||
encryption to create a secure private network between hosts on the Internet.
|
||||
|
||||
This tiny image (6.74 MB) is based on `alpine` (5.254 MB).
|
||||
To use this image, you need to:
|
||||
|
||||
- Have baisc knowledges of tinc
|
||||
@@ -29,13 +30,15 @@ To use this image, you need to:
|
||||
## docker-compose.yml
|
||||
|
||||
```
|
||||
server:
|
||||
tinc:
|
||||
image: vimagick/tinc
|
||||
ports:
|
||||
- "655:655/tcp"
|
||||
- "655:655/udp"
|
||||
volumes:
|
||||
- tinc:/etc/tinc
|
||||
environment:
|
||||
- VERBOSE=2
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
restart: always
|
||||
@@ -51,7 +54,7 @@ $ docker-compose up -d
|
||||
$ docker-compose logs
|
||||
|
||||
# stats
|
||||
$ watch docker exec tinc_server_1 ss -an
|
||||
$ watch docker exec tinc_tinc_1 netstat -an
|
||||
```
|
||||
|
||||
## client
|
||||
|
||||
Reference in New Issue
Block a user