Skip to content

Commit

Permalink
Merge pull request #2264 from tarlepp/chore(env)/use-mount-with-dev-p…
Browse files Browse the repository at this point in the history
…hp-configuration

Chore(env) - Use docker mount for PHP configuration within dev environment setup
  • Loading branch information
tarlepp committed Apr 7, 2023
2 parents c160884 + 8ed25b5 commit 9515ed3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile_dev
Expand Up @@ -76,6 +76,10 @@ COPY --from=composer:2.5.5 /usr/bin/composer /usr/bin/composer
RUN composer completion bash > /etc/bash_completion.d/composer

# Copy development `php.ini` configuration to container
#
# Also note that this is mounted within `docker-compose.yml` file, so
# you don't need to build containers again if you change something just
# restart containers and you're good
COPY ./docker/php/php-dev.ini /usr/local/etc/php/php.ini

# Define used work directory
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -15,6 +15,7 @@ services:
- mariadb
volumes:
- ./:/app:cached
- ./docker/php/php-dev.ini:/usr/local/etc/php/php.ini
tmpfs:
- /app/var/:uid=$HOST_UID,gid=$HOST_GID
environment:
Expand Down

0 comments on commit 9515ed3

Please sign in to comment.