forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gravitational#1394 from gravitational/sasha/curiosity
Sasha/curiosity
- Loading branch information
Showing
64 changed files
with
3,895 additions
and
604 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# file used by docker-compose itself (variables in yaml) | ||
DEBUG=1 | ||
CONTAINERHOME=/root/go/src/github.com/gravitational/teleport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
version: '2' | ||
services: | ||
# | ||
# one is a single-node Teleport cluster called "one" (runs all 3 roles: proxy, auth and node) | ||
# | ||
one: | ||
image: teleport:latest | ||
container_name: one | ||
command: ${CONTAINERHOME}/build/teleport start -d -c ${CONTAINERHOME}/docker/one.yaml | ||
ports: | ||
- "3080:3080" | ||
- "3023:3023" | ||
- "3025:3025" | ||
env_file: env.file | ||
volumes: | ||
- ./data/one:/var/lib/teleport | ||
- ../:/root/go/src/github.com/gravitational/teleport | ||
networks: | ||
teleport: | ||
ipv4_address: 172.10.1.1 | ||
aliases: | ||
- one-lb | ||
|
||
# | ||
# one-proxy is a second xproxy of the first cluster | ||
# | ||
one-proxy: | ||
image: teleport:latest | ||
container_name: one-proxy | ||
command: ${CONTAINERHOME}/build/teleport start -d -c ${CONTAINERHOME}/docker/one-proxy.yaml | ||
ports: | ||
- "4080:3080" | ||
- "4023:3023" | ||
env_file: env.file | ||
volumes: | ||
- ./data/one-proxy:/var/lib/teleport | ||
- ../:/root/go/src/github.com/gravitational/teleport | ||
networks: | ||
teleport: | ||
ipv4_address: 172.10.1.10 | ||
aliases: | ||
- one-lb | ||
|
||
# | ||
# two-auth is a auth server of the second cluster | ||
# | ||
two-auth: | ||
image: teleport:latest | ||
container_name: two-auth | ||
command: ${CONTAINERHOME}/build/teleport start -d -c ${CONTAINERHOME}/docker/two-auth.yaml --insecure | ||
env_file: env.file | ||
volumes: | ||
- ./data/two/auth:/var/lib/teleport | ||
- ../:/root/go/src/github.com/gravitational/teleport | ||
networks: | ||
teleport: | ||
ipv4_address: 172.10.1.2 | ||
|
||
# | ||
# two-proxy is a proxy service for the second cluster | ||
# | ||
two-proxy: | ||
image: teleport:latest | ||
container_name: two-proxy | ||
command: ${CONTAINERHOME}/build/teleport start -d -c ${CONTAINERHOME}/docker/two-proxy.yaml | ||
env_file: env.file | ||
ports: | ||
- "5080:5080" | ||
- "5023:5023" | ||
volumes: | ||
- ./data/two/proxy:/var/lib/teleport | ||
- ../:/root/go/src/github.com/gravitational/teleport | ||
networks: | ||
teleport: | ||
ipv4_address: 172.10.1.3 | ||
|
||
# | ||
# two-node is a node service for the second cluster | ||
# | ||
two-node: | ||
image: teleport:latest | ||
container_name: two-node | ||
command: ${CONTAINERHOME}/build/teleport start -d -c ${CONTAINERHOME}/docker/two-node.yaml | ||
env_file: env.file | ||
volumes: | ||
- ./data/two/node:/var/lib/teleport | ||
- ../:/root/go/src/github.com/gravitational/teleport | ||
networks: | ||
teleport: | ||
ipv4_address: 172.10.1.4 | ||
|
||
networks: | ||
teleport: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.10.1.0/16 | ||
ip_range: 172.10.1.0/24 | ||
gateway: 172.10.1.254 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DEBUG=1 | ||
CONTAINERHOME=/root/go/src/github.com/gravitational/teleport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# standalone proxy connected to | ||
teleport: | ||
auth_token: foo | ||
nodename: one-proxy | ||
advertise_ip: 172.10.1.10 | ||
log: | ||
output: /var/lib/teleport/teleport.log | ||
severity: INFO | ||
auth_servers: | ||
- one:3025 | ||
data_dir: /var/lib/teleport | ||
storage: | ||
path: /var/lib/teleport/backend | ||
type: dir | ||
|
||
auth_service: | ||
enabled: no | ||
|
||
ssh_service: | ||
enabled: no | ||
|
||
proxy_service: | ||
enabled: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.