docker-compose.yml 790 B

12345678910111213141516171819202122232425262728
  1. version: '3'
  2. services:
  3. workspace:
  4. image: ghcr.io/haxefoundation/haxe_devcontainer:development
  5. init: true
  6. volumes:
  7. - /var/run/docker.sock:/var/run/docker-host.sock
  8. - ..:/workspace:cached
  9. environment:
  10. - EARTHLY_BUILDKIT_HOST=tcp://earthly:8372
  11. - EARTHLY_USE_INLINE_CACHE=true
  12. - EARTHLY_SAVE_INLINE_CACHE=true
  13. user: vscode
  14. entrypoint: /usr/local/share/docker-init.sh
  15. command: sleep infinity
  16. earthly:
  17. image: earthly/buildkitd:v0.6.13
  18. privileged: true
  19. environment:
  20. - BUILDKIT_TCP_TRANSPORT_ENABLED=true
  21. expose:
  22. - 8372
  23. volumes:
  24. # https://docs.earthly.dev/docs/guides/using-the-earthly-docker-images/buildkit-standalone#earthly_tmp_dir
  25. - earthly-tmp:/tmp/earthly:rw
  26. volumes:
  27. earthly-tmp: