fiddle with docker

This commit is contained in:
Codex Agent
2025-11-15 17:00:57 +01:00
parent 4981d9f060
commit 5348c5b137
3 changed files with 159 additions and 107 deletions

View File

@@ -47,12 +47,23 @@ services:
condition: service_healthy
redis:
condition: service_started
healthcheck:
test:
- CMD
- php
- -r
- "exit(file_exists('/var/www/html/vendor/autoload.php') ? 0 : 1);"
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
web:
image: nginx:1.27-alpine
depends_on:
- app
app:
condition: service_healthy
volumes:
- app-code:/var/www/html:ro
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
@@ -78,11 +89,14 @@ services:
command: /var/www/html/docs/queue-supervisor/queue-worker.sh default
environment:
<<: *app-env
SKIP_CODE_SYNC: "1"
volumes:
- app-code:/var/www/html
depends_on:
- app
- redis
app:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
media-storage-worker:
@@ -92,11 +106,14 @@ services:
<<: *app-env
QUEUE_TRIES: 5
QUEUE_SLEEP: 5
SKIP_CODE_SYNC: "1"
volumes:
- app-code:/var/www/html
depends_on:
- app
- redis
app:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
scheduler:
@@ -104,10 +121,12 @@ services:
command: php artisan schedule:work
environment:
<<: *app-env
SKIP_CODE_SYNC: "1"
volumes:
- app-code:/var/www/html
depends_on:
- app
app:
condition: service_healthy
restart: unless-stopped
horizon:
@@ -115,11 +134,14 @@ services:
command: /var/www/html/docs/queue-supervisor/horizon.sh
environment:
<<: *app-env
SKIP_CODE_SYNC: "1"
volumes:
- app-code:/var/www/html
depends_on:
- app
- redis
app:
condition: service_healthy
redis:
condition: service_started
restart: unless-stopped
redis:
@@ -159,4 +181,4 @@ volumes:
networks:
coolify:
external: true
external: true