e93f5e06d5
- Add setup.sh interactive script for guided .env configuration - Add env var validation and placeholder detection to docker-entrypoint.sh - Fix migration count (52 → 63) in SELF-HOSTING.md - Align Docker image name to ghcr.io/erp-mafia/gnubok in docker-compose.yml - Update README and SELF-HOSTING.md to reference setup.sh Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
690 B
YAML
30 lines
690 B
YAML
services:
|
|
app:
|
|
image: ghcr.io/erp-mafia/gnubok:latest
|
|
env_file: .env
|
|
ports:
|
|
- "${PORT:-3000}:3000"
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 10s
|
|
retries: 3
|
|
|
|
cron:
|
|
build:
|
|
context: docker
|
|
dockerfile: cron.Dockerfile
|
|
depends_on:
|
|
app:
|
|
condition: service_healthy
|
|
environment:
|
|
- CRON_SECRET=${CRON_SECRET}
|
|
- APP_URL=http://app:3000
|
|
volumes:
|
|
- ./docker/crontab.self-hosted:/etc/supercronic/crontab:ro
|
|
restart: unless-stopped
|