Skip to content

Commit

Permalink
Basic docker-compose for different php versions and development
Browse files Browse the repository at this point in the history
  • Loading branch information
johanwilfer committed Aug 10, 2024
1 parent 0b30dc3 commit 1a85bd4
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
30 changes: 30 additions & 0 deletions compose.yml
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
7 changes: 7 additions & 0 deletions docker/dockerfile-siephp-php82
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"]
7 changes: 7 additions & 0 deletions docker/dockerfile-siephp-php83
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"]
7 changes: 7 additions & 0 deletions docker/dockerfile-siephp-php84
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"]

0 comments on commit 1a85bd4

Please sign in to comment.