Compare commits

...

2 Commits

Author SHA1 Message Date
36cd8944e3 Add starting database 2024-05-17 19:30:12 -04:00
4c056aea8b Update docker build 2024-05-17 19:25:28 -04:00
3 changed files with 9 additions and 8 deletions

View File

@ -16,10 +16,11 @@ RUN apt-get update && \
git \ git \
nano nano
RUN docker-php-ext-configure gd --with-jpeg && \ RUN docker-php-ext-configure gd --with-jpeg
docker-php-ext-configure zip && \ RUN docker-php-ext-configure zip
docker-php-ext-install \
pdo_sqlite \ RUN docker-php-ext-install \
#pdo_sqlite \
zip \ zip \
mbstring \ mbstring \
exif \ exif \
@ -43,8 +44,6 @@ RUN composer install --no-scripts --no-dev --optimize-autoloader
COPY . . COPY . .
RUN bash install.sh
EXPOSE 80 EXPOSE 80
CMD ["apache2-foreground"] CMD ["apache2-foreground"]

BIN
data/data.db Normal file

Binary file not shown.

View File

@ -2,11 +2,13 @@ version: "3"
services: services:
sermon-notes: sermon-notes:
command: "php bin/console doctrine:migrations:migrate --no-interaction" command:
- "php bin/console doctrine:migrations:migrate --no-interaction"
- "bash /var/www/html/install.sh"
build: . build: .
environment: environment:
- APP_ENV=prod - APP_ENV=prod
- DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" - DATABASE_URL="sqlite:///%kernel.project_dir%/data/data.db"
- MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 - MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
# - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app" # - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app"
# - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4" # - DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"