Skip to content

Commit d654a5a

Browse files
committed
Added deployment info
1 parent 49fcc9d commit d654a5a

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
# Joomla Automated Updates Server
22
This is the server for automated updates of Joomla CMS instances running on joomla.org
3+
4+
# Deployment
5+
* Install docker and docker compose
6+
* Check out this repo
7+
* Start the webserver and DB services: `docker-compose -f docker-compose.prod.yml up -d`
8+
* Daemonize the queue worker using supervisord; the call in question is: `docker-compose run --entrypoint="php artisan horizon" php`
9+
* 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`

docker-compose.prod.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: '3.1'
2+
services:
3+
mysql:
4+
image: 'mariadb:11'
5+
environment:
6+
- MYSQL_ROOT_PASSWORD=root
7+
- MYSQL_DATABASE=server
8+
- MYSQL_USER=joomla
9+
- MYSQL_PASSWORD=password
10+
ports:
11+
- '21002:3306'
12+
volumes:
13+
- joomla-autoupdates-mariadb:/var/lib/mysql
14+
15+
redis:
16+
image: redis
17+
ports:
18+
- "21003:6379"
19+
20+
php:
21+
build:
22+
context: .
23+
entrypoint: php artisan octane:frankenphp --workers=1 --max-requests=1
24+
ports:
25+
- '21001:8000'
26+
27+
volumes:
28+
joomla-autoupdates-mariadb:

0 commit comments

Comments
 (0)