Commit 3bf9b012 authored by Jürgen Haas's avatar Jürgen Haas

Always use absolute path for volumes

parent 523ebf3e
......@@ -279,7 +279,7 @@ class Handler extends BaseHandler {
$projectRoot = getenv('CI_PROJECT_DIR');
if (empty($projectRoot)) {
$projectRoot = '.';
$projectRoot = getcwd();
}
else {
$projectRoot = $options['ci_home'] . $projectRoot;
......
......@@ -42,7 +42,7 @@ services:
SSH_AUTH_SOCK: /ssh-agent
{% endif %}
volumes:
- {{ projectroot }}/:/var/www/html
- {{ projectroot }}:/var/www/html
- {{ projectroot }}/drush:/etc/drush
{% if php.ssh %}
- $SSH_AUTH_SOCK:/ssh-agent
......@@ -78,7 +78,7 @@ services:
{{ webserver.type|upper }}_BACKEND_HOST: php
{{ webserver.type|upper }}_SERVER_ROOT: /var/www/html/{{ webRoot }}
volumes:
- {{ projectroot }}/:/var/www/html
- {{ projectroot }}:/var/www/html
labels:
traefik.backend: '{{ projectname }}_{{ webserver.type }}_1'
traefik.port: '80'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment