forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteleport-lab.yml
83 lines (77 loc) · 1.96 KB
/
teleport-lab.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '2'
services:
# This container depends on the config written by the configure container above, so it
# sleeps for a second on startup to allow the configure container to run first.
teleport:
image: public.ecr.aws/gravitational/teleport-lab:12
container_name: teleport
entrypoint: /bin/sh
hostname: luna.teleport
command: -c "/usr/bin/dumb-init teleport start -d -c /etc/teleport.d/teleport.yaml"
ports:
- "3023:3023"
- "3024:3024"
- "3025:3025"
- "443:443"
volumes:
- config:/etc/teleport
- data:/var/lib/teleport
- certs:/mnt/shared/certs
networks:
teleport:
aliases:
- proxy.luna.teleport
# The bootstrap container generates certificates and then immediately exits.
bootstrap:
image: public.ecr.aws/gravitational/teleport-lab:12
container_name: teleport-bootstrap
entrypoint: /bin/sh
command: -c "/etc/teleport.d/scripts/generate-certs.sh"
volumes:
- config:/etc/teleport
- data:/var/lib/teleport
- certs:/mnt/shared/certs
depends_on:
- teleport
networks:
- teleport
#
# openssh is a demo of openssh node
#
openssh:
image: public.ecr.aws/gravitational/teleport-lab:12
container_name: openssh
hostname: mars.openssh.teleport
entrypoint: /bin/sh
command: -c "/etc/teleport.d/scripts/start-sshd.sh"
mem_limit: 300m
volumes:
- certs:/mnt/shared/certs
depends_on:
- bootstrap
networks:
teleport:
aliases:
- mars.openssh.teleport
#
# term is a container with a terminal to try things out
#
term:
image: public.ecr.aws/gravitational/teleport-lab:12
hostname: term
container_name: term
entrypoint: /bin/sh
command: -c "sleep infinity"
mem_limit: 300m
volumes:
- certs:/mnt/shared/certs
depends_on:
- bootstrap
networks:
- teleport
volumes:
certs:
data:
config:
networks:
teleport: