Skip to content

Commit ce73b7f

Browse files
committed
move from octane to nginx+fpm
1 parent 844bd0e commit ce73b7f

File tree

9 files changed

+564
-298
lines changed

9 files changed

+564
-298
lines changed

Dockerfile

Lines changed: 0 additions & 24 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ This is the server for automated updates of Joomla CMS instances running on joom
66
* Check out this repo
77
* Copy to .env.example to .env and adjust to your requirements - important: set UID and GID to user and group on the host system that you would like to use for the processes
88
* Start the webserver and DB services: `docker-compose -f docker-compose.prod.yml up -d`
9-
* Apply the database migrations: `docker-compose run --entrypoint="php artisan migrate" php`
10-
* Daemonize the queue worker, i.e. by using supervisord; the call in question is: `docker-compose run --entrypoint="php artisan horizon" php`
11-
* Add a cron job to execute the task scheduler. The scheduler should be trigger every 5min, the call is: `docker-compose run --entrypoint="php artisan schedule:run" php`
9+
* Apply the database migrations: `docker-compose run --entrypoint="php artisan migrate" php-fpm`
10+
* Daemonize the queue worker, i.e. by using supervisord; the call in question is: `docker-compose run --entrypoint="php artisan horizon" php-fpm`
11+
* Add a cron job to execute the task scheduler. The scheduler should be trigger every 5min, the call is: `docker-compose run --entrypoint="php artisan schedule:run" php-fpm`
1212

1313
## Periodic operations
1414
The update server performs several operations automatically, if the the cron job is configured. Each operation is a artisan console job and can be manually performed if necessary.
@@ -21,7 +21,7 @@ The update server performs several operations automatically, if the the cron job
2121

2222
## Manual operations
2323
The update server has multiple manual operations available that can be triggered via CLI. In order to do so, execute the respective command in the PHP container of the docker setup:
24-
`docker-compose run --entrypoint="php artisan $COMMAND" php`
24+
`docker-compose run --entrypoint="php artisan $COMMAND" php-fpm`
2525

2626
| Command | Description |
2727
|--------------------------------|---------------------------------------------------------------------------------------------------------------------------|

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"guzzlehttp/guzzle": "^7.9.3",
1010
"laravel/framework": "^11.46",
1111
"laravel/horizon": "^5.29",
12-
"laravel/octane": "^2.5",
1312
"laravel/tinker": "^2.9",
1413
"php-tuf/php-tuf": "1.0.1",
1514
"spatie/cpu-load-health-check": "^1.0",

composer.lock

Lines changed: 1 addition & 262 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-compose.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,36 @@ services:
77
- MYSQL_USER=joomla
88
- MYSQL_PASSWORD=password
99
ports:
10-
- '21002:3306'
10+
- '127.0.0.1:21002:3306'
1111
volumes:
1212
- joomla-autoupdates-mariadb:/var/lib/mysql
1313

1414
redis:
1515
image: redis
1616
ports:
17-
- "21003:6379"
17+
- "127.0.0.1:21003:6379"
1818

19-
php:
19+
webserver:
20+
image: 'nginx:alpine'
21+
working_dir: /application
22+
volumes:
23+
- './:/application'
24+
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
25+
ports:
26+
- '127.0.0.1:21001:80'
27+
28+
php-fpm:
2029
build:
21-
context: .
30+
context: docker/php-fpm
2231
args:
2332
UID: ${HOST_UID}
2433
GID: ${HOST_GID}
25-
entrypoint: php artisan octane:frankenphp --workers=1 --max-requests=1
26-
ports:
27-
- '21001:8000'
34+
working_dir: /application
35+
volumes:
36+
- './:/application'
37+
- './docker/php-fpm/php-ini-overrides.ini:/etc/php/8.3/fpm/conf.d/99-overrides.ini'
38+
- './docker/php-fpm/php-ini-overrides.ini:/etc/php/8.3/cli/conf.d/99-overrides.ini'
39+
- './docker/php-fpm/www.conf:/etc/php/8.3/fpm/pool.d/www.conf'
2840

2941
volumes:
3042
joomla-autoupdates-mariadb:

0 commit comments

Comments
 (0)