Skip to content

Commit

Permalink
version 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gruimed committed Nov 17, 2024
1 parent 8eb6384 commit ff0107e
Show file tree
Hide file tree
Showing 16 changed files with 3,360 additions and 140 deletions.
14 changes: 7 additions & 7 deletions docker/Nginx/nginx-config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ server {
}


location /swoole/ {
proxy_pass http://phpswoole:9501;
}

location ~ ^/apache/(.*) {
proxy_pass http://phpapache:80/$1;
}
# location /swoole/ {
# proxy_pass http://phpswoole:9501;
## }#
#
# lo#cation ~ ^/apache/(.*) {
# proxy_pass http://phpapache:80/$1;
# }

location ~ ^/phprr/(.*) {
proxy_pass http://phprr:8080/$1;
Expand Down
4 changes: 4 additions & 0 deletions docker/RoadRunner/Dockerfile.v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ghcr.io/roadrunner-server/roadrunner:2024.2 AS roadrunner
FROM php:8.3-cli-alpine

COPY --from=roadrunner /usr/bin/rr /usr/local/bin/rr
53 changes: 53 additions & 0 deletions docker/compose.v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

services:
web:
ports:
- "80:80"
image: nginx:1.27.2
hostname: web
volumes:
- ./Nginx/nginx-config.conf:/etc/nginx/conf.d/default.conf
depends_on:
php-composer:
condition: service_completed_successfully
php-fpm:
condition: service_started
php-rr:
condition: service_started


php-fpm:
image: php:8.3-fpm-alpine
hostname: phpfpm
volumes:
- ./www:/usr/share/www
depends_on:
php-composer:
condition: service_completed_successfully

php-rr:
build:
context: RoadRunner
dockerfile: Dockerfile.v1
hostname: phprr
volumes:
- ./www:/var/www
working_dir: /var/www
command: sh -c "rr serve -c v1.rr.yaml"
depends_on:
php-composer:
condition: service_completed_successfully

php-composer:
image: composer/composer:latest
volumes:
- ./www:/app
command: /bin/bash -c "env COMPOSER=composer.v1.json composer update --ignore-platform-reqs"

echo-server:
build:
context: EchoService
dockerfile: Dockerfile
hostname: echo-service


1 change: 1 addition & 0 deletions docker/www/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor/*
composer.lock
composer.*.lock
96 changes: 0 additions & 96 deletions docker/www/ch.php

This file was deleted.

22 changes: 22 additions & 0 deletions docker/www/composer.full
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"require": {
"open-telemetry/exporter-otlp": "^1.0",
"php-http/guzzle7-adapter": "^1.0",
"nyholm/psr7": "^1.8",
"spiral/roadrunner-worker": "^3.6",
"spiral/roadrunner": "^2024.2",
"spiral/roadrunner-http": "^3.5",
"open-telemetry/sdk": "^1",
"monolog/monolog": "^3",
"slim/slim": "^4",
"slim/psr7": "^1",
"guzzlehttp/guzzle": "^7.9",
"open-telemetry/opentelemetry-auto-slim": "^1.0",
"open-telemetry/opentelemetry-auto-guzzle": "^1.0"
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
}
}
Loading

0 comments on commit ff0107e

Please sign in to comment.