Skip to content

Commit

Permalink
disable access_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed May 26, 2023
1 parent bb0554c commit 6e3cc9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/dev-ssu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs postgresql-client
RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

COPY docker/dev-ssu/nginx.conf /etc/nginx/conf.d/custom.conf

RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc
Expand Down
4 changes: 4 additions & 0 deletions docker/dev-ssu/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Custom nginx configuration

# Disable access logs
access_log off;
2 changes: 2 additions & 0 deletions docker/prod-ssu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ARG POSTGRES_VERSION=15
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs jq
RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

COPY docker/prod-ssu/nginx.conf /etc/nginx/conf.d/custom.conf

COPY composer.json composer.lock ./
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist

Expand Down
4 changes: 4 additions & 0 deletions docker/prod-ssu/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Custom nginx configuration

# Disable access logs
access_log off;

0 comments on commit 6e3cc9d

Please sign in to comment.