Closed fliespl closed 1 year ago
Setting the DOCKER_HOST
environment variable should work.
Same thing goes for --profile
flag, use COMPOSE_PROFILES
env instead.
https://docs.docker.com/compose/environment-variables/envvars/#compose_profiles
Thank you - will give it a try :) (probably gonna conflict with gitlab ci which also utilizes this variable).
You can do it this way to avoid the conflict:
env DOCKER_HOST="ssh://owadmin@${DEPLOY_HOST}" docker-compose -f docker-compose.yml ...
My deploy command:
Is it possible to do it here? (-H option).