Mod volumes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
9e2b5411d8
commit
857c397692
|
@ -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;"]
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue