1
0
Fork 0
get-installer-bootstrap/compose.yaml

43 lines
967 B
YAML
Raw Normal View History

2026-05-05 07:32:06 +00:00
services:
app:
build:
context: .
dockerfile: docker/Dockerfile
target: app
environment:
APP_ENV: prod
APP_DEBUG: "0"
APP_SECRET: ${APP_SECRET:-change-me}
DATABASE_URL: sqlite:////app/var/data/app.db
APP_CACHE_DIR: /app/var/bootstrap-cache
volumes:
- app-data:/app/var/data
- app-cache:/app/var/bootstrap-cache
2026-05-05 09:54:59 +00:00
healthcheck:
test: ["CMD-SHELL", "php -r 'exit(@fsockopen(\"127.0.0.1\", 9000) ? 0 : 1);'"]
interval: 10s
timeout: 3s
retries: 3
start_period: 20s
2026-05-05 07:32:06 +00:00
nginx:
build:
context: .
dockerfile: docker/Dockerfile
target: web
depends_on:
2026-05-05 09:54:59 +00:00
app:
condition: service_healthy
2026-05-05 07:32:06 +00:00
ports:
- "${HTTP_PORT:-8080}:80"
2026-05-05 09:54:59 +00:00
healthcheck:
test: ["CMD-SHELL", "wget -q --spider http://127.0.0.1/ || exit 1"]
interval: 10s
timeout: 3s
retries: 3
start_period: 20s
2026-05-05 07:32:06 +00:00
volumes:
app-data:
app-cache: