#81 Image and log volumes

This commit is contained in:
Daniel Brendel
2024-01-15 21:23:03 +01:00
parent aa9cc5d1f4
commit 338b0f3f07
3 changed files with 7 additions and 5 deletions

View File

@@ -6,8 +6,8 @@ services:
ports:
- "8080:80"
volumes:
- "./plants:/var/www/html/public/img"
- "./plants_logs:/var/www/html/app/logs"
- app_images:/var/www/html/public/img
- app_logs:/var/www/html/app/logs
environment:
APP_DEBUG: "true"
APP_LANG: "en"
@@ -43,3 +43,5 @@ services:
volumes:
db_data:
app_images:
app_logs:

View File

@@ -148,7 +148,7 @@ php asatru migrate:fresh
# Check if admin user exists and create it if not.
add_admin_user_if_missing
# copy default images
# Copy default images
cp /tmp/img/* /var/www/html/public/img
# Set permissions to folders for file upload

View File

@@ -25,10 +25,10 @@ COPY . /var/www/html
# copy default files in /public/img so they can be copied if needed in entrypoint
RUN mkdir /tmp/img
RUN cp /var/www/html/public/img/* /tmp/img
VOLUME /var/www/html/public/img
VOLUME ["/var/www/html/public/img"]
# Create volume for logs
VOLUME /var/www/html/app/logs
VOLUME ["/var/www/html/app/logs"]
# Copy the PHP overrides
COPY ./99-php.ini /usr/local/etc/php/conf.d/