-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (34 loc) · 921 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (34 loc) · 921 Bytes
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
version: '3'
services:
test:
image: golang:${GO_VERSION:-1.19}
working_dir: /source
command: sh -c "find . -name 'go.mod' -printf '%h\\n' | xargs -L1 sh -c 'cd $$0 && go test -coverprofile c.out -v ./...'"
environment:
PHOENIX_HOST: http://phoenix:8765
MYSQL_HOST: mysql:3306
POSTGRES_HOST: postgres:5432
volumes:
- .:/source
- $GOPATH/pkg/mod/cache:/go/pkg/mod/cache
depends_on:
- mysql
- phoenix
- postgres
mysql:
image: mysql:8
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
phoenix:
image: boostport/hbase-phoenix-all-in-one:2.0-5.0
postgres:
image: postgres:14-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
lint:
image: golangci/golangci-lint:v1.50
working_dir: /source
command: golangci-lint run -v
volumes:
- .:/source
- $GOPATH/pkg/mod/cache:/go/pkg/mod/cache