forked from sandglass/sandglass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (48 loc) · 1.34 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '2'
services:
sandglass:
build: .
volumes:
- ./:/gopath/src/github.com/sandglass/sandglass
environment:
- GODEBUG=netdns=go
image: celrenheit/sandglass
networks:
- my-net
test:
build:
context: .
dockerfile: Dockerfile.test
command: go test -v ./...
networks:
- my-net
protos:
build:
context: .
dockerfile: Dockerfile.protos
entrypoint: ash compile_protos.sh
volumes:
- ./sgproto:/data/sgproto
node1:
extends: sandglass
ports:
- "7170:7170"
command: -v --name node1 --advertise_addr node1 --initial_peers node2:9900 --bootstrap_raft --data /data
node2:
extends: sandglass
command: -v --name node2 --advertise_addr node2 --initial_peers node1:9900 --data /data
node3:
extends: sandglass
command: -v --name node3 --advertise_addr node3 --initial_peers node3:9900 --data /data
integration_test:
extends: sandglass
command: go test -v ./integration/broker
releaser:
build:
context: .
dockerfile: Dockerfile.releaser
environment:
- GITHUB_TOKEN=${GITHUB_TOKEN}
command: goreleaser
networks:
my-net: