-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (48 loc) · 1.22 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
version: '3'
volumes:
rssh_gatekeeper_host_key:
services:
etcd:
image: quay.io/coreos/etcd
environment:
ETCD_LISTEN_CLIENT_URLS: 'http://127.0.0.1:2379'
ETCD_ADVERTISE_CLIENT_URLS: 'http://127.0.0.1:2379'
network_mode: host
restart: on-failure
rssh_api:
build:
context: .
dockerfile: Dockerfile
image: xide/rssh
environment:
RSSH_CONFIG: /.rssh.yml
RSSH_LOG_LEVEL: 'debug'
RSSH_API_ADDR: '0.0.0.0'
RSSH_API_PORT: '9321'
RSSH_API_ETCD_ENDPOINTS: 'http://127.0.0.1:2379'
command: api
volumes:
- .rssh.yml:/.rssh.yml
depends_on:
- etcd
network_mode: host
rssh_gatekeeper:
build:
context: .
dockerfile: Dockerfile
image: xide/rssh
environment:
RSSH_CONFIG: /.rssh.yml
RSSH_LOG_LEVEL: 'debug'
RSSH_GATEKEEPER_ADDR: '0.0.0.0'
RSSH_GATEKEEPER_PORT: '2223'
RSSH_GATEKEEPER_PORT_RANGE: '31240-65535'
RSSH_GATEKEEPER_ETCD_ENDPOINTS: 'http://127.0.0.1:2379'
RSSH_GATEKEEPER_SSH_HOST_KEY: '/hostkey/.rssh-gk-host.key'
command: gatekeeper
volumes:
- .rssh.yml:/.rssh.yml
- rssh_gatekeeper_host_key:/hostkey/
depends_on:
- etcd
network_mode: host