Skip to content

Instantly share code, notes, and snippets.

@ksatirli
Created August 29, 2017 12:35
Show Gist options
  • Save ksatirli/848c3b7d400583d456c3ae443a3a6eb2 to your computer and use it in GitHub Desktop.
Save ksatirli/848c3b7d400583d456c3ae443a3a6eb2 to your computer and use it in GitHub Desktop.
data-only-container-in-docker-compose.yml
---
version: '2'
services:
shared:
image: busybox
container_name: shared
volumes:
- /tmp:/shared
app:
image: alpine:3.6
container_name: app
command: cat /shared/*.log
volumes_from:
- shared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment