Skip to content

Commit 107526a

Browse files
committed
setup docker compose and scripts
1 parent eb7552a commit 107526a

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
service {
2+
id = "my-service1"
3+
name = "my-service"
4+
tags = ["v1"]
5+
address = "127.0.0.1"
6+
port = 8000
7+
8+
enable_tag_override = true
9+
10+
weights {
11+
passing = 10
12+
warning = 1
13+
}
14+
}

examples/consul/my-service1.json renamed to configs/development/config/tagit/consul/my-service1.json

File renamed without changes.
File renamed without changes.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
services:
2+
consul:
3+
image: ncode/consul:dev
4+
command: agent -dev -client=0.0.0.0 -config-dir /config
5+
ports:
6+
- "8500:8500"
7+
volumes:
8+
- ./config/consul:/config
9+
10+
tagit:
11+
image: ncode/tagit:dev
12+
depends_on:
13+
- consul
14+
command: run --consul-addr=consul:8500 --service-id=my-service1 --script=/config/example.sh --interval=5s --tag-prefix=tagit
15+
volumes:
16+
- ./config/tagit:/config
17+

0 commit comments

Comments
 (0)