Add Docker setup for Coolify
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
RewriteEngine On
|
||||||
|
|
||||||
|
# Redirigir a index si no existeix el fitxer
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
|
RewriteRule ^ index.html [L]
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
FROM php:8.2-apache
|
||||||
|
|
||||||
|
# Instal·lar extensions necessàries
|
||||||
|
RUN docker-php-ext-install mysqli pdo pdo_mysql
|
||||||
|
|
||||||
|
# Activar mod_rewrite
|
||||||
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
|
# Copiar projecte
|
||||||
|
COPY . /var/www/html/
|
||||||
|
|
||||||
|
# Permisos
|
||||||
|
RUN chown -R www-data:www-data /var/www/html
|
||||||
Reference in New Issue
Block a user