2020-08-08 17:41:11 +00:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
# reachable from outside
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
# interconnects projects
|
2020-08-13 12:26:09 +00:00
|
|
|
kiwi_hub:
|
2020-08-08 17:41:11 +00:00
|
|
|
external:
|
2020-08-20 13:29:07 +00:00
|
|
|
name: ${KIWI_HUB_NAME}
|
2020-08-08 17:41:11 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
hello-world:
|
|
|
|
image: alpine:latest
|
2020-08-11 10:33:21 +00:00
|
|
|
command: sh -c 'LOOP=1; while :; do echo Hello World "$$LOOP"; LOOP=$$(($$LOOP + 1)); sleep 10; done'
|
2020-08-20 13:29:07 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- kiwi_hub
|
|
|
|
|
2020-08-11 10:33:21 +00:00
|
|
|
foo-bar:
|
|
|
|
image: alpine:latest
|
|
|
|
command: sh -c 'LOOP=1; while :; do echo Foo Bar "$$LOOP"; LOOP=$$(($$LOOP + 1)); sleep 20; done'
|