Skip to content

Commit

Permalink
Fix issue in installation and fix Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
farisc0de committed Jul 21, 2023
1 parent a02f2cf commit 1b69636
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions uploady/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions uploady/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion uploady/logic/installLogic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
];

Expand Down

0 comments on commit 1b69636

Please sign in to comment.