Skip to content

wp-config.php mounting issue #231

@kenashworth

Description

@kenashworth

Hi all,

I've read a bunch of tickets about how it's possible to mount the wp-config.php file, but I've encountered a failure trying to do so.

The issue is, I'm mounting only the wp-config.php file. I get the following error:

Complete! WordPress has been successfully copied to /var/www/html
sed: cannot rename ./sedHyWkku: Device or resource busy
exited with code 4

This is my docker-compose.yml

version: '3'
services:
  mysql:
    container_name: sns-db
    image: mariadb
    volumes:
      - db_data:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: wp
  wordpress:
    container_name: sns-wp
    image: "wordpress:latest"
    depends_on:
      - mysql
    ports:
      - "80:80"
      - "443:443"
    environment:
      WORDPRESS_DB_PASSWORD: wp
    volumes:
      - ./wp-config.php:/var/www/html/wp-config.php
volumes:
  db_data:

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