1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2026-09-02 18:19:38 +02:00

Get docker setup working correclty

This commit is contained in:
Robbie Antenesse 2026-08-24 21:48:42 -06:00
parent 7e3ba184f7
commit f1e6d97d35
2 changed files with 9 additions and 4 deletions

View file

@ -2,12 +2,12 @@ FROM php:8.2-apache
# Enable Apache modules
RUN a2enmod rewrite
# Install composer dependencies
RUN apt update && apt upgrade -y && apt install -y git curl libzip-dev zip unzip
RUN apt update && apt upgrade -y && apt install -y git curl libzip-dev zip unzip libonig-dev
# Install Node
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
RUN apt update && apt-get install -y nodejs
# Install any extensions you need
RUN docker-php-ext-install mysqli pdo pdo_mysql zip
RUN docker-php-ext-install mysqli pdo pdo_mysql zip bcmath mbstring
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Set the working directory to /var/www

View file

@ -22,7 +22,9 @@ services:
MARIADB_PASSWORD: ${PROJECT_DB_PASSWORD}
ports:
- "3306:3306"
volumes:
- lexiconga_db:/var/lib/mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
@ -33,3 +35,6 @@ services:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: ${PROJECT_DB_ROOT_PASSWORD}
UPLOAD_LIMIT: 300M
volumes:
lexiconga_db: