Skip to content

Commit 13c64f8

Browse files
committed
add set/get commands
1 parent fc234b9 commit 13c64f8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docker-compose-init.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ services:
1111
networks:
1212
- consul_test
1313

14+
set:
15+
image: consul
16+
entrypoint: consul kv put -http-addr=http://172.16.231.22:8500
17+
volumes:
18+
- './basic_config.json:/consul/config/basic_config.json'
19+
networks:
20+
- consul_test
21+
22+
get:
23+
image: consul
24+
entrypoint: consul kv get -http-addr=http://172.16.231.22:8500
25+
volumes:
26+
- './basic_config.json:/consul/config/basic_config.json'
27+
networks:
28+
- consul_test
29+
1430
networks:
1531
consul_test:
1632
driver: bridge

0 commit comments

Comments
 (0)