-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
docker-compose.dev.yml
76 lines (76 loc) · 2.14 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
75
76
services:
ssh:
image: ssh
build:
context: .
dockerfile: ssh/Dockerfile
target: development
network: host
args:
- GOPROXY=${SHELLHUB_GOPROXY:-}
volumes:
- ./ssh:/go/src/github.com/shellhub-io/shellhub/ssh
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
- ./.golangci.yaml:/.golangci.yaml
environment:
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
- SHELLHUB_CLOUD=${SHELLHUB_CLOUD}
- SHELLHUB_BILLING=${SHELLHUB_BILLING}
- SHELLHUB_ENV=${SHELLHUB_ENV}
api:
image: api
build:
context: .
dockerfile: api/Dockerfile
target: development
network: host
args:
- GOPROXY=${SHELLHUB_GOPROXY:-}
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
- ./.golangci.yaml:/.golangci.yaml
environment:
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
- SHELLHUB_CLOUD=${SHELLHUB_CLOUD}
- SHELLHUB_ENV=${SHELLHUB_ENV}
ui:
image: ui
build:
context: .
dockerfile: ui/Dockerfile
target: development
network: host
args:
- NPM_CONFIG_REGISTRY=${SHELLHUB_NPM_REGISTRY:-}
volumes:
- ./ui:/src
gateway:
image: gateway
build:
context: .
dockerfile: gateway/Dockerfile
target: development
volumes:
- ./gateway:/go/src/github.com/shellhub-io/shellhub/gateway
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
- ./.golangci.yaml:/.golangci.yaml
- ./gateway/nginx:/templates
environment:
- SHELLHUB_VERSION=latest
- SHELLHUB_ENV=${SHELLHUB_ENV}
cli:
image: cli
build:
context: .
dockerfile: cli/Dockerfile
target: development
environment:
- SHELLHUB_ENTERPRISE=${SHELLHUB_ENTERPRISE}
- SHELLHUB_CLOUD=${SHELLHUB_CLOUD}
volumes:
- ./cli:/go/src/github.com/shellhub-io/shellhub/cli
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
- ./api:/go/src/github.com/shellhub-io/shellhub/api
- ./.golangci.yaml:/.golangci.yaml