Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create directory wp-content/uploads/2024/07. Is its parent directory writable by the server? #906

Closed
bkmorale opened this issue Jul 2, 2024 · 0 comments

Comments

@bkmorale
Copy link

bkmorale commented Jul 2, 2024

Hi All,

I'm trying to use the officially supported wordpress image in my container setup however out of the box it doesn't allow the upload of media to the upload directory. I haven't done anything special with the container and just started it up using a docker volume here is my docker-compose file

version: '3.1'

services:

  wordpress:
    image: wordpress
    restart: always
    ports:
      - 8081:80
    container_name: wordpress
    environment:
      WORDPRESS_DB_HOST: *****
      WORDPRESS_DB_USER: ******
      WORDPRESS_DB_PASSWORD: ******
      WORDPRESS_DB_NAME: *******
    depends_on:
      - *******
    volumes:
      - wordpress:/var/www/html


  db:
    image: mysql:8.0
    restart: always
    container_name: DB
    environment:
      MYSQL_DATABASE: ******
      MYSQL_USER: *****
      MYSQL_PASSWORD: *****
      MYSQL_RANDOM_ROOT_PASSWORD: '1'
    volumes:
      - db:/var/lib/mysql

volumes:
  wordpress:
  db:

Is there something else I need to do to get this working?

@docker-library docker-library locked and limited conversation to collaborators Jul 2, 2024
@tianon tianon converted this issue into discussion #907 Jul 2, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant