fix: container DB race condition, feat: separate images for app & worker, chore: example compose & .env files

This commit is contained in:
2025-05-18 19:48:10 -05:00
parent bc8c214c99
commit daafeb79b7
14 changed files with 191 additions and 154 deletions

12
docker/Dockerfile.worker Normal file
View File

@@ -0,0 +1,12 @@
FROM registry.caldwell.digital/library/php:8.4-apache
RUN apt-get update && \
apt-get install libldap2-dev -y && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-install ldap
COPY --chown=www-data:www-data . /var/www
COPY ./bash/vhost.conf /etc/apache2/sites-enabled/vhost.conf
RUN rm /etc/apache2/sites-enabled/000-default.conf