docker-compose.foo.yml 462 B

12345678910111213141516171819202122232425
  1. version: '3'
  2. services:
  3. alfa:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile.alfa
  7. environment:
  8. - BRAVO_ZULU=/shared/foo.txt
  9. volumes:
  10. - shared-volume:/shared
  11. bravo:
  12. build:
  13. context: .
  14. dockerfile: Dockerfile.bravo
  15. volumes:
  16. # - /opt/foo.txt:/shared/foo.txt
  17. # You can also use a named volume for better portability
  18. - shared-volume:/shared
  19. command: sleep infinity
  20. volumes:
  21. shared-volume: