-
-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
70 lines (70 loc) · 2.32 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
70 lines (70 loc) · 2.32 KB
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
services:
server:
image: server
build:
context: .
dockerfile: server/Dockerfile
target: development
network: host
args:
- GOPROXY=${SHELLHUB_GOPROXY:-}
volumes:
- ./server:/go/src/github.com/shellhub-io/shellhub/server
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
- ./openapi:/go/src/github.com/shellhub-io/shellhub/openapi
- ./tests:/go/src/github.com/shellhub-io/shellhub/tests
- /var/run/docker.sock:/var/run/docker.sock
- ./.golangci.yaml:/.golangci.yaml
- ./.mockery.yaml:/go/src/github.com/shellhub-io/shellhub/.mockery.yaml
- ./go.sum:/go/src/github.com/shellhub-io/shellhub/go.sum
environment:
- TESTCONTAINERS_DOCKER_NETWORK=${SHELLHUB_NETWORK}
- SHELLHUB_EDITION=${SHELLHUB_EDITION}
- 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
- ./openapi:/openapi:ro
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
environment:
- SHELLHUB_VERSION=latest
- SHELLHUB_ENV=${SHELLHUB_ENV}
- SHELLHUB_GATEWAY_ACCESS_LOGS=${SHELLHUB_GATEWAY_ACCESS_LOGS}
# Development asks Let's Encrypt's staging directory, always. Turning
# SHELLHUB_AUTO_SSL on in .env.override is then enough to exercise the
# whole certificate path, without knowing this URL and without spending
# the production rate limit on a rehearsal.
- SHELLHUB_ACME_CA_SERVER=https://acme-staging-v02.api.letsencrypt.org/directory
openapi:
image: openapi
build:
context: .
dockerfile: openapi/Dockerfile
target: development
args:
- GOPROXY=${SHELLHUB_GOPROXY:-}
volumes:
- ./openapi:/go/src/github.com/shellhub-io/shellhub/openapi
- ./pkg:/go/src/github.com/shellhub-io/shellhub/pkg
- ./.golangci.yaml:/.golangci.yaml
environment:
- SHELLHUB_EDITION=${SHELLHUB_EDITION}
networks:
- shellhub