I found it, I think
environment: - ENV_VARIABLE_IN_CONTAINER=$ENV_VARIABLE_ON_HOST
seems to have worked.