-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
docker-compose.agent.yml
37 lines (37 loc) · 1.12 KB
/
docker-compose.agent.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
services:
agent:
image: agent
restart: unless-stopped
build:
context: .
dockerfile: agent/Dockerfile
target: development
network: host
args:
- SHELLHUB_VERSION=latest
- GOPROXY=${SHELLHUB_GOPROXY:-}
- SHELLHUB_LOG_LEVEL=${SHELLHUB_LOG_LEVEL}
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=00000000-0000-4000-0000-000000000000
- SHELLHUB_VERSION=${SHELLHUB_VERSION}
- SHELLHUB_LOG_LEVEL=${SHELLHUB_LOG_LEVEL}
- SHELLHUB_LOG_FORMAT=${SHELLHUB_LOG_FORMAT}
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
- ./.golangci.yaml:/.golangci.yaml
- /tmp:/tmp
depends_on:
- api
- ssh
- gateway