preserve user uploaded content

This commit is contained in:
Bilal Catic
2018-10-21 19:18:54 +02:00
parent f76e102bf3
commit a07b3fb7d9
3 changed files with 3 additions and 0 deletions

View File

@@ -68,5 +68,6 @@ RUN ln -s ../html api
COPY docker/php/.htaccess /var/www/html/
RUN chown -R www-data:www-data /var/www/html
RUN chmod -R 755 /var/www/html/app/uploads
CMD /init-scripts/setup.sh

View File

@@ -23,6 +23,7 @@ services:
- WP_JWT_AUTH_SECRET_KEY
volumes:
- ./log/backend/:/var/log/apache2/
- ./docker/backend/uploads/:/var/www/html/app/uploads/
ports:
- '8081:80'
depends_on:

1
docker/backend/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
uploads/