fix: uses actual app container for dev
This commit is contained in:
21
compose.yml
21
compose.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user