-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic docker-compose for different php versions and development
- Loading branch information
1 parent
0b30dc3
commit 1a85bd4
Showing
4 changed files
with
51 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,30 @@ | ||
services: | ||
siephp-php82: | ||
container_name: siephp-php82 | ||
build: | ||
context: . | ||
dockerfile: ./docker/dockerfile-siephp-php82 | ||
tty: true | ||
stdin_open: true | ||
volumes: | ||
- .:/docker:rw,delegated | ||
|
||
siephp-php83: | ||
container_name: siephp-php83 | ||
build: | ||
context: . | ||
dockerfile: ./docker/dockerfile-siephp-php83 | ||
tty: true | ||
stdin_open: true | ||
volumes: | ||
- .:/docker:rw,delegated | ||
|
||
siephp-php84: | ||
container_name: siephp-php84 | ||
build: | ||
context: . | ||
dockerfile: ./docker/dockerfile-siephp-php84 | ||
tty: true | ||
stdin_open: true | ||
volumes: | ||
- .:/docker:rw,delegated |
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,7 @@ | ||
FROM php:8.2 | ||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
|
||
RUN apt-get update && apt-get install -y git curl nano zip | ||
WORKDIR /docker | ||
|
||
CMD ["bash"] |
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,7 @@ | ||
FROM php:8.3 | ||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
|
||
RUN apt-get update && apt-get install -y git curl nano zip | ||
WORKDIR /docker | ||
|
||
CMD ["bash"] |
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,7 @@ | ||
FROM php:8.4-rc | ||
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | ||
|
||
RUN apt-get update && apt-get install -y git curl nano zip | ||
WORKDIR /docker | ||
|
||
CMD ["bash"] |