forked from Kevinrob/guzzle-cache-middleware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENHANCEMENT] add docker-compose for easy jump in development
- Loading branch information
Maxim Ageev
committed
Jan 26, 2023
1 parent
d250471
commit d03b46d
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM php:8.1-cli-alpine | ||
ENV XDG_CACHE_HOME=/tmp/.cache | ||
ENV COMPOSER_CACHE_DIR=${XDG_CACHE_HOME}/composer | ||
# posible could install cache directory here | ||
RUN --mount=type=bind,from=mlocati/php-extension-installer:1.5,source=/usr/bin/install-php-extensions,target=/usr/local/bin/install-php-extensions \ | ||
install-php-extensions zip xdebug-stable | ||
RUN addgroup -S app && adduser -S app -G app | ||
RUN mkdir -p /app && chown -R app /app && mkdir -p /tmp && chown -R app /tmp | ||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer | ||
USER app | ||
WORKDIR /app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[xdebug] | ||
zend_extension="xdebug.so" | ||
xdebug.client_host=host.docker.internal | ||
xdebug.mode=debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: "3.9" | ||
services: | ||
cli: | ||
build: | ||
dockerfile: .docker/Dockerfile.local | ||
context: . | ||
working_dir: /app | ||
volumes: | ||
- ./:/app | ||
- ~/.composer/cache/:/tmp/cache/ | ||
- ./.docker/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini:ro |