fix: uses actual app container for dev

This commit is contained in:
2025-05-19 16:36:37 -05:00
parent f39e307bc4
commit c47b1fc23f
3 changed files with 19 additions and 6 deletions

View File

@@ -2,5 +2,5 @@ dev.caldwell.digital:443
tls /etc/ssl/wildcard.crt /etc/ssl/wildcard.pem
reverse_proxy php:80
reverse_proxy app:80

View File

@@ -19,24 +19,33 @@ services:
command: redis-server --maxmemory 512MB
restart: unless-stopped
php:
build: .
app:
image: code.caldwell.digital/home/torsearch:0.14.5-app
volumes:
- ./:/var/www
depends_on:
database:
condition: service_healthy
worker:
build: .
image: code.caldwell.digital/home/torsearch:0.14.5-worker
volumes:
- ./:/var/www
- ./var/download:/var/download
command: php ./bin/console messenger:consume async -vvv --time-limit=3600
depends_on:
app:
condition: service_healthy
scheduler:
build: .
image: code.caldwell.digital/home/torsearch:0.14.5-worker
volumes:
- ./:/var/www
- ./var/download:/var/download
command: php ./bin/console messenger:consume scheduler_monitor -vv --time-limit=3600
depends_on:
app:
condition: service_healthy
mercure:
image: dunglas/mercure
@@ -67,6 +76,10 @@ services:
MYSQL_USERNAME: app
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: password
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 10s
retries: 10
adminer:
image: adminer

View File

@@ -89,7 +89,7 @@
"post-update-cmd": [
"@auto-scripts"
],
"sym": "docker compose exec php ./bin/console"
"sym": "docker compose exec app ./bin/console"
},
"conflict": {
"symfony/symfony": "*"