-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
4eb5b3a
commit e2d926b
Showing
9 changed files
with
94 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
version: "3.9" | ||
services: | ||
app: | ||
container_name: laravel-love-app | ||
image: laravel-love-app | ||
php81: | ||
container_name: laravel-love-lib-81 | ||
image: laravel-love-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-love | ||
|
||
nginx: | ||
container_name: laravel-love-nginx | ||
image: nginx:1.21-alpine | ||
restart: unless-stopped | ||
depends_on: | ||
- app | ||
ports: | ||
- "80:80" | ||
environment: | ||
VIRTUAL_HOST: app.laravel-love.localhost | ||
php82: | ||
container_name: laravel-love-lib-82 | ||
image: laravel-love-lib-82 | ||
build: | ||
context: ./ | ||
dockerfile: ./.docker/php/php82/Dockerfile | ||
tty: true | ||
working_dir: /app | ||
volumes: | ||
- ./.docker/nginx/app.laravel-love.80.conf:/etc/nginx/conf.d/app.laravel-love.80.conf:ro | ||
- ./public:/app/public:ro | ||
networks: | ||
- laravel-love | ||
- ./:/app | ||
|
||
networks: | ||
laravel-love: | ||
driver: bridge | ||
php83: | ||
container_name: laravel-love-lib-83 | ||
image: laravel-love-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