forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
144 lines (135 loc) · 3.66 KB
/
docker-compose.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
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
mem_limit: 300m
memswap_limit: 0
ports:
- "3080:3080"
- "3023:3023"
- "3025:3025"
env_file: env.file
volumes:
- ./data/one:/var/lib/teleport
- ../:/root/go/src/github.com/gravitational/teleport
- certs:/mnt/shared/certs
networks:
teleport:
ipv4_address: 172.10.1.1
aliases:
- one-lb
#
# one-node is a single-node Teleport cluster called "one" (runs all 3 roles: proxy, auth and node)
#
one-node:
image: teleport:latest
container_name: one-node
command: ${CONTAINERHOME}/build/teleport start -d -c ${CONTAINERHOME}/docker/one-node.yaml
env_file: env.file
mem_limit: 300m
volumes:
- ./data/one-node:/var/lib/teleport
- ../:/root/go/src/github.com/gravitational/teleport
networks:
teleport:
ipv4_address: 172.10.1.20
#
# one-sshd is a single-node Teleport cluster called "one" (runs all 3 roles: proxy, auth and node)
#
one-sshd:
image: teleport:latest
container_name: one-sshd
command: /usr/bin/start-sshd.sh
env_file: env.file
mem_limit: 300m
volumes:
- ./sshd/pam.d/ssh:/etc/pam.d/ssh
- ./sshd/etc/ssh/sshd_config:/etc/ssh/sshd_config
- certs:/mnt/shared/certs
networks:
teleport:
ipv4_address: 172.10.1.21
#
# 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
mem_limit: 300m
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:
mem_limit: 300m
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:
mem_limit: 300m
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:
mem_limit: 300m
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
volumes:
certs: