1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
This commit is contained in:
kev 2015-06-22 21:56:24 +08:00
parent 7bf5408f79
commit 438d9e5f24

@ -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