forked from shellhub-io/shellhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
74 lines (73 loc) · 1.87 KB
/
docker-compose.dev.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
version: '3.7'
services:
ssh:
image: ssh
build:
context: .
dockerfile: ssh/Dockerfile
target: development
volumes:
- ./ssh:/go/src/github.com/shellhub-io/shellhub/ssh
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
environment:
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
api:
image: api
build:
context: .
dockerfile: api/Dockerfile
target: development
volumes:
- ./api:/go/src/github.com/shellhub-io/shellhub/api
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
- /var/run/docker.sock:/var/run/docker.sock
ui:
image: ui
build:
context: .
dockerfile: ui/Dockerfile
target: development
volumes:
- ./ui:/src
environment:
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
gateway:
image: gateway
build:
context: .
dockerfile: gateway/Dockerfile
environment:
- SHELLHUB_VERSION=latest
- SHELLHUB_ENV=${SHELLHUB_ENV}
agent:
image: agent
restart: unless-stopped
build:
context: .
dockerfile: agent/Dockerfile
target: development
args:
SHELLHUB_VERSION: latest
privileged: true
network_mode: host
pid: host
environment:
- SHELLHUB_SERVER_ADDRESS=http://localhost:${SHELLHUB_HTTP_PORT}
- SHELLHUB_PRIVATE_KEY=/go/src/github.com/shellhub-io/shellhub/agent/shellhub.key
- SHELLHUB_TENANT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- SHELLHUB_VERSION=${SHELLHUB_VERSION}
volumes:
- ./agent:/go/src/github.com/shellhub-io/shellhub/agent
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
- /:/host
- /dev:/dev
- /etc/passwd:/etc/passwd
- /etc/group:/etc/group
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- api
- ssh
- gateway
mongo:
autossl:
image: tianon/true