feat: uses php-fpm & nginx instead of php-apache

This commit is contained in:
2025-05-20 20:38:36 -05:00
parent a2a1154a22
commit 295f68cb92
11 changed files with 145 additions and 59 deletions

View File

@@ -1,26 +1,35 @@
services:
# This container runs the actual web app in a php:8.4-apache
# base container. If not running behind a reverse proxy,
# inject your SSL certificates into this container
app:
image: code.caldwell.digital/home/torsearch:0.14.8-app
# The "entrypoint" into the application. This reverse proxy
# proxies traffic back to their respective services. If not
# running behind a reverse proxy inject your SSL certificates
# into this container.
web:
image: code.caldwell.digital/home/torsearch-web:latest
ports:
- "8006:80"
- '8006:80'
depends_on:
app:
condition: service_healthy
# This container runs the actual web app in a php:8.4-fpm
# base container.
app:
image: code.caldwell.digital/home/torsearch-app:0.14.8
env_file:
- .env
depends_on:
database:
condition: service_healthy
# Downloads happen asynchronously in this container. Replicate
# this container to run multiple downloads simultaneously.
# Downloads happen in this container. Replicate this
# container to run multiple downloads simultaneously.
# Map your "movies" folder to /var/download/movies
# Map your TV shows folder to /var/download/tvshows
# Map your "TV shows" folder to /var/download/tvshows
# If your folders are on another machine, use an NFS volume.
# This container runs a Symfony worker process.
# See: https://symfony.com/doc/current/messenger.html
worker:
image: code.caldwell.digital/home/torsearch:0.14.8-worker
image: code.caldwell.digital/home/torsearch-worker:0.14.8
volumes:
- ./downloads/movies:/var/download/movies
- ./downloads/tvshows:/var/download/tvshows
@@ -37,7 +46,7 @@ services:
# This container runs a Symfony worker process.
# See: https://symfony.com/doc/current/messenger.html
scheduler:
image: code.caldwell.digital/home/torsearch:0.14.8-worker
image: code.caldwell.digital/home/torsearch-worker:0.14.8
volumes:
- ./downloads:/var/download
command: php ./bin/console messenger:consume scheduler_monitor -vv --time-limit=3600