-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
572c540
commit 96a2715
Showing
10 changed files
with
103 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
# ---------------------- | ||
# The FPM base container | ||
# ---------------------- | ||
FROM php:8.2-cli-alpine AS dev | ||
|
||
RUN apk add --no-cache --virtual .build-deps \ | ||
$PHPIZE_DEPS | ||
|
||
# Cleanup apk cache and temp files | ||
RUN rm -rf /var/cache/apk/* /tmp/* | ||
|
||
# ---------------------- | ||
# Composer install step | ||
# ---------------------- | ||
|
||
# Get latest Composer | ||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
|
||
# ---------------------- | ||
# The FPM production container | ||
# ---------------------- | ||
FROM dev |
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,22 @@ | ||
# ---------------------- | ||
# The FPM base container | ||
# ---------------------- | ||
FROM php:8.3-cli-alpine AS dev | ||
|
||
RUN apk add --no-cache --virtual .build-deps \ | ||
$PHPIZE_DEPS | ||
|
||
# Cleanup apk cache and temp files | ||
RUN rm -rf /var/cache/apk/* /tmp/* | ||
|
||
# ---------------------- | ||
# Composer install step | ||
# ---------------------- | ||
|
||
# Get latest Composer | ||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
|
||
# ---------------------- | ||
# The FPM production container | ||
# ---------------------- | ||
FROM dev |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,35 +1,34 @@ | ||
version: "3.9" | ||
services: | ||
app: | ||
container_name: laravel-ownership-app | ||
image: laravel-ownership-app | ||
php81: | ||
container_name: laravel-ownership-lib-81 | ||
image: laravel-ownership-lib-81 | ||
build: | ||
context: ./ | ||
dockerfile: ./.docker/php/Dockerfile | ||
restart: unless-stopped | ||
dockerfile: ./.docker/php/php81/Dockerfile | ||
tty: true | ||
working_dir: /app | ||
volumes: | ||
- ./:/app | ||
- ./.docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf:ro | ||
networks: | ||
- laravel-ownership | ||
|
||
nginx: | ||
container_name: laravel-ownership-nginx | ||
image: nginx:1.21-alpine | ||
restart: unless-stopped | ||
depends_on: | ||
- app | ||
ports: | ||
- "80:80" | ||
environment: | ||
VIRTUAL_HOST: app.laravel-ownership.localhost | ||
php82: | ||
container_name: laravel-ownership-lib-82 | ||
image: laravel-ownership-lib-82 | ||
build: | ||
context: ./ | ||
dockerfile: ./.docker/php/php82/Dockerfile | ||
tty: true | ||
working_dir: /app | ||
volumes: | ||
- ./.docker/nginx/app.laravel-ownership.80.conf:/etc/nginx/conf.d/app.laravel-ownership.80.conf:ro | ||
- ./public:/app/public:ro | ||
networks: | ||
- laravel-ownership | ||
- ./:/app | ||
|
||
networks: | ||
laravel-ownership: | ||
driver: bridge | ||
php83: | ||
container_name: laravel-ownership-lib-83 | ||
image: laravel-ownership-lib-83 | ||
build: | ||
context: ./ | ||
dockerfile: ./.docker/php/php83/Dockerfile | ||
tty: true | ||
working_dir: /app | ||
volumes: | ||
- ./:/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