Add Docker and Coolify deployment setup
Add the container configuration, environment templates, and storage settings needed to deploy SPOTA with Docker and Coolify.
This commit is contained in:
31
Dockerfile.coolify
Normal file
31
Dockerfile.coolify
Normal file
@@ -0,0 +1,31 @@
|
||||
FROM php:8.2-apache-bookworm
|
||||
|
||||
RUN rm -rf /var/lib/apt/lists/* \
|
||||
&& apt-get clean \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
libcurl4-openssl-dev \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libonig-dev \
|
||||
libpng-dev \
|
||||
libwebp-dev \
|
||||
libzip-dev \
|
||||
unzip \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
|
||||
&& docker-php-ext-install -j"$(nproc)" pdo_mysql mysqli gd curl zip mbstring exif \
|
||||
&& a2enmod rewrite headers \
|
||||
&& printf 'ServerName localhost\n' > /etc/apache2/conf-available/server-name.conf \
|
||||
&& a2enconf server-name \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY docker/php.ini /usr/local/etc/php/conf.d/spota.ini
|
||||
COPY docker/apache-vhost.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
WORKDIR /var/www/html
|
||||
COPY . /var/www/html/
|
||||
|
||||
RUN mkdir -p /var/www/html/files /var/www/html/img /tmp/spota_sessions \
|
||||
&& chown -R www-data:www-data /var/www/html /tmp/spota_sessions
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user