mirror of
https://github.com/danielbrendel/hortusfox-web.git
synced 2026-02-20 21:38:53 -06:00
#81 Image and log volumes
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user