Compare commits
2 Commits
8c32b881bc
...
857c397692
Author | SHA1 | Date |
---|---|---|
|
857c397692 | |
|
9e2b5411d8 |
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- '8000:80'
|
- '8000:80'
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/storage:/app/storage/app
|
- ./data/storage/public:/app/storage/app/public
|
||||||
|
|
||||||
php:
|
php:
|
||||||
image: zoomyboy/adrema-app:latest
|
image: zoomyboy/adrema-app:latest
|
||||||
|
|
|
@ -9,7 +9,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- '8000:80'
|
- '8000:80'
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/storage:/app/storage/app
|
- ./data/storage/public:/app/public/storage
|
||||||
|
|
||||||
php:
|
php:
|
||||||
build:
|
build:
|
||||||
|
|
Loading…
Reference in New Issue