Remove Symfony log dir from Volumes.

This commit is contained in:
Jan Eitzinger 2021-05-20 09:22:17 +02:00
parent c811a4e532
commit fef8133a18
2 changed files with 2 additions and 3 deletions

View File

@ -46,7 +46,6 @@ services:
ports: ports:
- "${PHP_PORT}:9001" - "${PHP_PORT}:9001"
volumes: volumes:
- ./logs/symfony:/var/www/symfony/var/log
- ./symfony:/var/www/symfony - ./symfony:/var/www/symfony
depends_on: depends_on:
- db - db

View File

@ -66,8 +66,8 @@ RUN wget https://github.com/symfony/cli/releases/download/v$SYMFONY_CLI_VERSION/
RUN apk add --update nodejs npm \ RUN apk add --update nodejs npm \
&& npm install --global yarn && npm install --global yarn
RUN mkdir -p /var/www/symfony && mkdir -p /var/www/symfony/var/log RUN mkdir -p /var/www/symfony
VOLUME /var/www/symfony /var/www/symfony/var/log VOLUME /var/www/symfony
COPY symfony.ini /etc/php8/conf.d/ COPY symfony.ini /etc/php8/conf.d/
COPY symfony.ini /etc/php8/cli/conf.d/ COPY symfony.ini /etc/php8/cli/conf.d/