forked from distribworks/dkron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b560f1f
commit 2305442
Showing
7 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
init_config: | ||
|
||
instances: | ||
- host: redis0 | ||
port: 6379 | ||
timeout: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker service rm redis0 | ||
|
||
docker service create \ | ||
--name redis0 \ | ||
--network my-net \ | ||
redis | ||
|
||
sleep 10 | ||
|
||
docker service rm dkron-redis0 dkron-redis | ||
|
||
docker service create \ | ||
--name dkron-redis0 \ | ||
--network my-net \ | ||
--publish 8090:8080 \ | ||
--container-label beta="0" \ | ||
dkron/dkron:v0.9.3 \ | ||
agent -server -bind=0.0.0.0:8946 -backend=redis -backend-machine=redis0:6379 -join=dkron-redis0:8946 -dog-statsd-addr=dd-agent:8125 -log-level=debug | ||
|
||
sleep 5 | ||
|
||
docker service create \ | ||
--name dkron-redis \ | ||
--network my-net \ | ||
--replicas 5 \ | ||
--publish 8091:8080 \ | ||
--container-label beta="0" \ | ||
dkron/dkron:v0.9.3 \ | ||
agent -server -bind=0.0.0.0:8946 -backend=redis -backend-machine=redis0:6379 -join=dkron-redis0:8946 -dog-statsd-addr=dd-agent:8125 -log-level=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters