Put SSH info in docker-compose.yml

This commit is contained in:
naomi 2022-04-05 13:27:49 +02:00
parent 268454c84d
commit e9becba06a

View File

@ -17,6 +17,12 @@ services:
working_dir: /app working_dir: /app
volumes: volumes:
- ./src:/app:cached - ./src:/app:cached
# Use your own SSH Host Key file
- "${HOME}/.ssh/known_hosts:/root/.ssh/known_hosts:ro"
- $SSH_AUTH_SOCK:$SSH_AUTH_SOCK
environment:
# Pass SSH agent socket, to avoid having to reënter your passphrase
SSH_AUTH_SOCK: "${SSH_AUTH_SOCK}"
db: db:
image: mariadb:10.4 image: mariadb:10.4