You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 859 B

1234567891011121314151617181920212223242526
  1. version: '3'
  2. services:
  3. devcontainer:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. volumes:
  8. # Forwards the local Docker socket to the container.
  9. - /var/run/docker.sock:/var/run/docker-host.sock
  10. # Update this to wherever you want VS Code to mount the folder of your project
  11. - ../..:/workspaces:cached
  12. # Overrides default command so things don't shut down after the process ends.
  13. entrypoint: /usr/local/share/docker-init.sh
  14. command: sleep infinity
  15. # Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust.
  16. # cap_add:
  17. # - SYS_PTRACE
  18. # security_opt:
  19. # - seccomp:unconfined
  20. # Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
  21. # (Adding the "ports" property to this file will not forward from a Codespace.)