feat: add Docker Compose setup for Coolify deployment
- Dockerfile: php:8.2-apache with pdo_mysql, curl, mod_rewrite - docker-compose.yml: app + MySQL 8.0, healthchecks, named volumes - .dockerignore: exclude .env, .git, uploads, docs - .gitignore: add .env Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
&& docker-php-ext-install pdo_mysql \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN a2enmod rewrite \
|
||||
&& echo "ServerName localhost" >> /etc/apache2/apache2.conf \
|
||||
&& sed -i 's|AllowOverride None|AllowOverride All|g' /etc/apache2/apache2.conf
|
||||
|
||||
COPY . /var/www/html/
|
||||
|
||||
RUN mkdir -p /var/www/html/uploads \
|
||||
&& chown -R www-data:www-data /var/www/html \
|
||||
&& chmod 755 /var/www/html \
|
||||
&& chmod 777 /var/www/html/uploads
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user