diff --git a/uploady/Dockerfile b/uploady/Dockerfile index e9b4afc..5aa78e9 100644 --- a/uploady/Dockerfile +++ b/uploady/Dockerfile @@ -1,13 +1,9 @@ FROM php:8.2-apache -ARG user - RUN docker-php-ext-install pdo_mysql COPY . /var/www/html -RUN usermod -u ${user} www-data && groupmod -g ${user} www-data; - RUN chmod 777 -R /var/www/html/uploads RUN chown -R www-data:www-data /var/www/html/uploads diff --git a/uploady/docker-compose.yaml b/uploady/docker-compose.yaml index 6dd65c6..2d84e37 100644 --- a/uploady/docker-compose.yaml +++ b/uploady/docker-compose.yaml @@ -4,13 +4,11 @@ services: build: context: . dockerfile: Dockerfile - args: - user: 1001 ports: - 80:80 volumes: - .:/var/www/html - image: uploady:latest + image: fariscode/uploady:latest restart: always depends_on: - db diff --git a/uploady/logic/installLogic.php b/uploady/logic/installLogic.php index 6b62955..4a5cd70 100755 --- a/uploady/logic/installLogic.php +++ b/uploady/logic/installLogic.php @@ -144,7 +144,7 @@ ['file_data', Types::LongText(), Options::notNull()], ['file_settings', Types::LongText(), Options::notNull()], ['user_data', Types::LongText(), Options::notNull()], - ['downloads', Types::integer(), Options::notNull()], + ['downloads', Types::integer(), Options::null()], ['uploaded_at', Types::timeStamp(), Options::null()], ];