Skip to content

Commit 25a5ac3

Browse files
committed
Fix docker deployment
1 parent 8133f41 commit 25a5ac3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: uploady/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
FROM php:8.2-apache
22

3-
RUN docker-php-ext-install pdo_mysql
3+
RUN docker-php-ext-install pdo pdo_mysql mysqli && docker-php-ext-enable mysqli
44

55
COPY . /var/www/html
66

7-
RUN chmod 777 -R /var/www/html/uploads
7+
RUN chmod 755 -R /var/www/html/
88

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

Diff for: uploady/config/environment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
define('ENVIRONMENT', 'development');
3+
define('ENVIRONMENT', 'installation');
44
ini_set("memory_limit", "1024M");
55

66
switch (ENVIRONMENT) {

Diff for: uploady/docker-compose.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3.8'
1+
version: "3.8"
22
services:
33
app:
44
build:
@@ -9,12 +9,12 @@ services:
99
volumes:
1010
- .:/var/www/html
1111
image: farisc0de/uploady:latest
12-
restart: always
1312
depends_on:
1413
- db
1514

1615
db:
1716
image: mysql:latest
17+
restart: always
1818
environment:
1919
MYSQL_DATABASE: "uploady"
2020
MYSQL_USER: "uploady"

0 commit comments

Comments
 (0)