42 lines
818 B
YAML
42 lines
818 B
YAML
x-app: &app
|
|
image: z-lab-cockpit:latest
|
|
env_file: .env
|
|
# environment:
|
|
# DB_CONNECTION: sqlite
|
|
# DB_DATABASE: /var/www/html/storage/app/database.sqlite
|
|
volumes:
|
|
- ./storage:/var/www/html/storage
|
|
depends_on:
|
|
app:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
services:
|
|
app:
|
|
<<: *app
|
|
build:
|
|
context: .
|
|
secrets:
|
|
- composer_auth
|
|
depends_on: []
|
|
ports:
|
|
- "8000:80"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/up"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
|
|
queue:
|
|
<<: *app
|
|
command: ["php", "artisan", "queue:work", "--tries=3", "--backoff=10"]
|
|
|
|
scheduler:
|
|
<<: *app
|
|
command: ["php", "artisan", "schedule:work"]
|
|
|
|
secrets:
|
|
composer_auth:
|
|
file: ./auth.json
|