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
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@ services:
working_dir: /app
volumes:
- ./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:
image: mariadb:10.4