Skip to content

Commit

Permalink
Fix docker deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
farisc0de committed Jan 6, 2024
1 parent 8133f41 commit 25a5ac3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions uploady/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM php:8.2-apache

RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-install pdo pdo_mysql mysqli && docker-php-ext-enable mysqli

COPY . /var/www/html

RUN chmod 777 -R /var/www/html/uploads
RUN chmod 755 -R /var/www/html/

RUN chown -R www-data:www-data /var/www/html/uploads

Expand Down
2 changes: 1 addition & 1 deletion uploady/config/environment.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define('ENVIRONMENT', 'development');
define('ENVIRONMENT', 'installation');
ini_set("memory_limit", "1024M");

switch (ENVIRONMENT) {
Expand Down
4 changes: 2 additions & 2 deletions uploady/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.8'
version: "3.8"
services:
app:
build:
Expand All @@ -9,12 +9,12 @@ services:
volumes:
- .:/var/www/html
image: farisc0de/uploady:latest
restart: always
depends_on:
- db

db:
image: mysql:latest
restart: always
environment:
MYSQL_DATABASE: "uploady"
MYSQL_USER: "uploady"
Expand Down

0 comments on commit 25a5ac3

Please sign in to comment.