WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

It should be possible to opt out of mounting /var/www as a named mount since it can mess up certain containers such as adminer #388

@codebymikey

Description

@codebymikey

I have the following service, which uses /var/www/html to serve its codebase:

services:
  adminer:
    api: 3
    type: lando
    ssl: true
    sslExpose: false
    portforward: false
    meUser: adminer
    services:
      image: adminer:5.3.0-standalone
      command: entrypoint.sh docker-php-entrypoint php -S '[::]:8080' -t /var/www/html
      user: root
      ports: ['8080']
      environment: []

However because lando automatically mounts /var/www to the home, it makes updating difficult as it keeps the previous codebase whenever the image is updated, such that if you later switch to 5.4.0, it'll still serve the 5.3.0 codebase assets.

See

`${dataHome}:/var/www`,

It'd be useful if the mount could be opted out from, or the default /var/www home directory can be overridden to something else to avoid the conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions