Put SSH info in docker-compose.yml
This commit is contained in:
parent
268454c84d
commit
e9becba06a
@ -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
|
||||||
|
Reference in New Issue
Block a user