This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| composer: | |
| environment: | |
| SSH_AUTH_SOCK: /run/host-services/ssh-auth.sock | |
| volumes: | |
| - .:/code | |
| # Share the ssh-agent's socket to be able to install dependencies from private repositories via Composer. | |
| # We are not actually pointing at the socket on a host system, we are pointing at some other special machinery | |
| # in Docker Desktop for macOS that enables specifically the SSH agent forwarding. | |
| # Requires Docker Desktop 2.2+ in case of macOS. Related issue: https://github.com/docker/for-mac/issues/410 |