Skip to content

Instantly share code, notes, and snippets.

@djmetzle
Created August 21, 2019 23:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djmetzle/fecf57b7c257e6ca009259b879dbc0a6 to your computer and use it in GitHub Desktop.
Save djmetzle/fecf57b7c257e6ca009259b879dbc0a6 to your computer and use it in GitHub Desktop.
Proof that docker-compose gracefully handles cyclic dependency resolution
---
version: '3'
services:
aaa:
container_name: aaa
image: busybox
command:
- ping
- bbb
restart: on-failure
bbb:
container_name: bbb
image: busybox
command:
- ping
- aaa
restart: on-failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment