1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
dockerfiles/tinc/README.md

51 lines
1.1 KiB
Markdown
Raw Normal View History

2015-06-14 05:06:12 +02:00
[`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.
To use this image, you need to:
- Have baisc knowledges of tinc
- Create a directory tree by hand [read this][2]
- Use `docker-compose` to manage
## directory tree
```
~/fig/tinc/
├── docker-compose.yml
└── tinc/
├── netname/
│   ├── hosts/
│   │   ├── client
│   │   ├── client-down
│   │   ├── client-up
│   │   └── server
│   ├── rsa_key.priv
│   ├── tinc.conf
│   ├── tinc-down
│   └── tinc-up
└── nets.boot
```
## docker-compose.yml
```
server:
image: vimagick/tinc
ports:
2015-06-14 09:15:04 +02:00
- "655:655"
2015-06-14 05:06:12 +02:00
volumes:
- tinc:/etc/tinc
2015-06-14 09:15:04 +02:00
cap_add:
- NET_ADMIN
2015-06-14 05:06:12 +02:00
restart: always
```
2015-06-14 07:41:39 +02:00
## server
```
$ fig up -d
```
2015-06-14 05:06:12 +02:00
[1]: http://tinc-vpn.org/
[2]: https://www.digitalocean.com/community/tutorials/how-to-install-tinc-and-set-up-a-basic-vpn-on-ubuntu-14-04