Skip to content

apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory #1084

@cbatista8a

Description

@cbatista8a

path /etc/apache2/ is not mounted on my local folder apache2 for custom configurations
-sites folder is mounted but not apache dir, or the content of /etc/apache2/ on container is erased because my local folder apache2 is empty?

MAC OS High Sierra 10.13.6 (17G14033)

[My docker-compose.yml]

version: "3.8"
services:
lamp:
image: "php:7.3-apache"
volumes:
- ./sites:/var/www/html
- ./apache2:/etc/apache2
ports:
- 80:80

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions