Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Adjust Docker Configuration #694

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ FROM docker.io/php:8.2-apache-bookworm
RUN apt-get update && \
apt-get install -y libpng-dev libsodium-dev libsqlite3-dev libzip-dev zlib1g-dev zip
RUN docker-php-ext-install -j$(nproc) gd opcache pdo_mysql pdo_sqlite sodium zip
RUN echo "memory_limit = 512M" > /usr/local/etc/php/conf.d/memory_limit.ini

COPY --from=builder /var/www/html /var/www/html
COPY contrib/apache.conf /etc/apache2/sites-available/000-default.conf
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ services:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/var/www/html
ports:
- 8000:80
networks:
Expand All @@ -16,6 +18,8 @@ services:
MYSQL_PASSWORD: password
MYSQL_DATABASE: mail
MARIADB_RANDOM_ROOT_PASSWORD: true
ports:
- 3306:3306
volumes:
- mariadb:/var/lib/mysql
networks:
Expand Down
Loading