-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 1018 Bytes
/
docker-compose.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
version: '3'
services:
app:
image: jumpeimano/go-dep-image:1.12
environment:
GOPATH: /go
GO111MODULE: "on"
working_dir: /go/src/github.com/jumpeiMano/go-memcached
volumes:
- .:/go/src/github.com/jumpeiMano/go-memcached
- ${GOPATH}/pkg/mod:/go/pkg/mod
depends_on:
- memcached_1
- memcached_2
- memcached_3
- memcached_4
lint:
image: golangci/golangci-lint
environment:
- GO111MODULE=on
volumes:
- .:/go/src/github.com/jumpeiMano/go-memcached
- ${GOPATH}/pkg/mod:/go/pkg/mod
working_dir: /go/src/github.com/jumpeiMano/go-memcached
command: ["golangci-lint", "run"]
memcached_1:
image: memcached
ports:
- "11211:11211"
memcached_2:
image: memcached
ports:
- "11212:11211"
memcached_3:
image: memcached
ports:
- "11213:11211"
memcached_4:
image: memcached
ports:
- "11214:11211"
memcached_5:
image: memcached
ports:
- "11215:11211"