Skip to content

Instantly share code, notes, and snippets.

@zeromodule
Created February 10, 2023 11:59
Show Gist options
  • Save zeromodule/2e83e15c4006ebc6b4946a35a20554a6 to your computer and use it in GitHub Desktop.
Save zeromodule/2e83e15c4006ebc6b4946a35a20554a6 to your computer and use it in GitHub Desktop.
version: '3.3'
volumes:
my_binary_data:
services:
my-app1:
build:
context: .
dockerfile: Dockerfile
image: my-app1:latest
volumes:
- my_binary_data:/home/dev/tmp
my-app2:
image: ubuntu:latest
depends_on:
- my-app1
command: ["sh","-c","cat /home/dev/tmp/my-binary-data-file && sleep infinity"]
volumes:
- my_binary_data:/home/dev/tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment