-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
db9dd10
commit 9fb0c95
Showing
9 changed files
with
97 additions
and
159 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-optimus-app | ||
image: laravel-optimus-app | ||
php81: | ||
container_name: laravel-optimus-lib-81 | ||
image: laravel-optimus-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-optimus | ||
|
||
nginx: | ||
container_name: laravel-optimus-nginx | ||
image: nginx:1.21-alpine | ||
restart: unless-stopped | ||
depends_on: | ||
- app | ||
ports: | ||
- "80:80" | ||
environment: | ||
VIRTUAL_HOST: app.laravel-optimus.localhost | ||
php82: | ||
container_name: laravel-optimus-lib-82 | ||
image: laravel-optimus-lib-82 | ||
build: | ||
context: ./ | ||
dockerfile: ./.docker/php/php82/Dockerfile | ||
tty: true | ||
working_dir: /app | ||
volumes: | ||
- ./.docker/nginx/app.laravel-optimus.80.conf:/etc/nginx/conf.d/app.laravel-optimus.80.conf:ro | ||
- ./public:/app/public:ro | ||
networks: | ||
- laravel-optimus | ||
- ./:/app | ||
|
||
networks: | ||
laravel-optimus: | ||
driver: bridge | ||
php83: | ||
container_name: laravel-optimus-lib-83 | ||
image: laravel-optimus-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