I am running WordPress with Nginx in Docker using Docker Compose and I want to copy over a custom theme. Right now in my docker-compose.yml file I have,
wordpress: depends_on: - db image: wordpress:5.1.1-fpm-alpine container_name: wordpress restart: unless-stopped env_file: .env environment: - WORDPRESS_DB_HOST=MYHOST - WORDPRESS_DB_USER=$MYSQL_USER - WORDPRESS_DB_PASSWORD=$MYSQL_PASSWORD - WORDPRESS_DB_NAME=MYDB volumes: - ./plugins/advanced-custom-fields:/var/www/html/wp-content/plugins/advanced-custom-fields - ./themes/mytheme:/var/www/html/wp-content/themes/mytheme It kind of works. The theme copies over some of the php files from the theme folder but it doesn't copy over any of the stylesheets or any of the images in the /img/ folder.
Thanks in advance!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!