mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-08 07:16:49 +00:00
latest
This commit is contained in:
2202
api/composer.lock
generated
2202
api/composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -9,6 +9,8 @@
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
||||
RewriteRule ^(uploads)($|/) - [L]
|
||||
|
||||
# Redirect Trailing Slashes If Not A Folder...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_URI} (.+)/$
|
||||
|
||||
2
console
2
console
Submodule console updated: 73de7a41ab...7a27f92554
@@ -6,7 +6,7 @@ services:
|
||||
|
||||
database:
|
||||
image: mysql:8.0-oracle
|
||||
ports:
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- "./docker/database/:/docker-entrypoint-initdb.d/"
|
||||
@@ -16,16 +16,17 @@ services:
|
||||
|
||||
application:
|
||||
volumes:
|
||||
- '.:/var/www/html'
|
||||
- .:/var/www/html
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/Dockerfile
|
||||
target: app-dev
|
||||
args:
|
||||
ENVIRONMENT: development
|
||||
ENVIRONMENT: development
|
||||
environment:
|
||||
DATABASE_URL: "mysql://root@database/fleetbase_os"
|
||||
CACHE_DRIVER: redis
|
||||
CACHE_PATH: /var/www/html/api/storage/framework/cache
|
||||
CACHE_URL: tcp://cache
|
||||
REDIS_URL: tcp://cache
|
||||
SESSION_DOMAIN: localhost
|
||||
@@ -34,10 +35,15 @@ services:
|
||||
- cache
|
||||
|
||||
httpd:
|
||||
volumes:
|
||||
- ./api/storage:/var/www/html/api/storage
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/httpd/Dockerfile
|
||||
dockerfile: docker/httpd/Dockerfile
|
||||
ports:
|
||||
- "8000:80"
|
||||
depends_on:
|
||||
- application
|
||||
|
||||
volumes:
|
||||
storage:
|
||||
|
||||
@@ -29,20 +29,17 @@ RUN curl -L https://github.com/springload/ssm-parent/releases/download/v1.4.3/ss
|
||||
WORKDIR /var/www
|
||||
COPY docker/composer-install.sh ./
|
||||
RUN chmod +x ./composer-install.sh && ./composer-install.sh
|
||||
|
||||
# WORKDIR /var/www/html
|
||||
# COPY . .
|
||||
|
||||
COPY packages /var/www/html/packages
|
||||
WORKDIR /var/www/html/api
|
||||
RUN chown www-data:www-data /var/www/html
|
||||
RUN chown www-data:www-data /var/www/html/api
|
||||
USER www-data
|
||||
RUN mkdir -p ./storage/logs/ && ln -sf /dev/stdout ./storage/logs/laravel.log
|
||||
# copy these first to not reinstall everything on a random file change
|
||||
# COPY api/composer.json api/composer.lock ./
|
||||
COPY api/composer.json api/composer.lock ./
|
||||
RUN composer install --no-dev --no-scripts --no-autoloader
|
||||
COPY --chown=www-data:nogroup . ./
|
||||
RUN composer dumpautoload
|
||||
# RUN composer dumpautoload
|
||||
|
||||
USER root
|
||||
|
||||
|
||||
@@ -11,6 +11,18 @@ server {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location /uploads {
|
||||
alias /var/www/html/api/storage/app/uploads;
|
||||
autoindex on;
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location /storage {
|
||||
alias /var/www/html/api/storage/app/public;
|
||||
autoindex on;
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
@@ -25,4 +37,4 @@ server {
|
||||
fastcgi_pass application:9000;
|
||||
fastcgi_index index.php;
|
||||
}
|
||||
}
|
||||
}
|
||||
Submodule packages/core-api updated: f593c72509...7e181373da
Submodule packages/ember-core updated: f0d5b97e5c...99506b41fb
Submodule packages/ember-ui updated: 8ca3ab44a8...78ab3ac360
Submodule packages/fleetops-api updated: 83e63b9a9e...50171be6c7
Submodule packages/fleetops-data updated: ebfe753b37...0fb1f31968
Submodule packages/fleetops-engine updated: 123afedad1...d75d9c14aa
Submodule packages/storefront-api updated: 1ae1ba15ef...fb643b89b9
Submodule packages/storefront-engine updated: 4222a9b77c...63b72cfe61
Reference in New Issue
Block a user