Mod volumes
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2024-01-01 22:39:47 +01:00
parent 9e2b5411d8
commit 857c397692
3 changed files with 4 additions and 5 deletions

View File

@ -15,9 +15,8 @@ WORKDIR /app
COPY --from=node /app /app COPY --from=node /app /app
COPY --from=composer /app/public/vendor /app/public/vendor COPY --from=composer /app/public/vendor /app/public/vendor
COPY ./.docker/nginx/nginx.conf /etc/nginx/nginx.conf COPY ./.docker/nginx/nginx.conf /etc/nginx/nginx.conf
RUN cd public && ln -s ../storage/app/public ./storage
EXPOSE 80 EXPOSE 80
VOLUME ["/app/storage/app"] VOLUME ["/app/public/storage"]
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

View File

@ -10,8 +10,8 @@ function wait_for_db {
done done
} }
mkdir /app/packages/laravel-nami/.cookies || true mkdir -p /app/packages/laravel-nami/.cookies || true
mkdir /app/storage/app || true mkdir -p /app/storage/app/public || true
chown -R www-data:www-data /app/packages/laravel-nami/.cookies chown -R www-data:www-data /app/packages/laravel-nami/.cookies
chown -R www-data:www-data /app/storage/app chown -R www-data:www-data /app/storage/app

View File

@ -9,7 +9,7 @@ services:
ports: ports:
- '8000:80' - '8000:80'
volumes: volumes:
- ./data/storage/public:/app/storage/app/public - ./data/storage/public:/app/public/storage
php: php:
build: build: