https://github.com/vd2org/teleport-node
This repository enables quick and secure setup of a Teleport node using Docker and Docker Compose.
https://github.com/vd2org/teleport-node
compose docker remote-access security ssh teleport
Last synced: 6 months ago
JSON representation
This repository enables quick and secure setup of a Teleport node using Docker and Docker Compose.
- Host: GitHub
- URL: https://github.com/vd2org/teleport-node
- Owner: vd2org
- License: mit
- Created: 2024-02-03T21:01:35.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-12T04:47:13.000Z (7 months ago)
- Last Synced: 2024-11-12T05:27:51.706Z (7 months ago)
- Topics: compose, docker, remote-access, security, ssh, teleport
- Language: Python
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Teleport node
-------------This project provides a simple solution to start a **[teleport](https://goteleport.com/)** node on a host through Docker.
The Docker image copies the teleport binary to the host and runs it in host mode.
The default root path is `/var/teleport-node`, which can be adjusted by setting the `HOST_ROOT` variable.
### Supported platforms
* linux/amd64
* linux/arm64### Available versions
[Here](https://github.com/users/vd2org/packages/container/package/teleport-node)
### Creating an Auth Token
Use the following command to create a new auth token:
```shell
tctl nodes add
```This will generate a new token like this:
```shell
> docker exec -ti teleport tctl nodes add
The invite token: ddnp9yobukji84aturqa59oiqsxux896
This token will expire in 30 minutes.
```### Starting with Docker
You can start the teleport node using Docker with the following command:
```shell
docker run -d --name teleport-node \
--privileged \
--network=host \
--ipc=host \
--pid=host \
--volume=/:/rootfs \
--restart=always \
-e "INIT_PROXY_SERVER=teleport.example.com:443" \
-e "INIT_TOKEN=ddnp9yobukji84aturqa59oiqsxux896" \
ghcr.io/vd2org/teleport-node:v17.0.1
```### Starting with Docker Compose
You can also start the teleport node using Docker Compose with the following command:
```shell
curl https://raw.githubusercontent.com/vd2org/teleport-node/v17.0.1/compose.yml |
INIT_TOKEN=ddnp9yobukji84aturqa59oiqsxux896 INIT_PROXY_SERVER=teleport.example.com:443 docker compose -p teleport-node -f - up -d
```### Upgrading an existing container
To upgrade an existing image, use the following command:
```shell
curl https://raw.githubusercontent.com/vd2org/teleport-node/v17.0.1/compose.yml | docker compose -p teleport-node -f - up -d
```