Replace named volume with bind mount so the host path is known and passed via UPAAS_HOST_DATA_DIR. This fixes git clone failures in containerized deployment where bind mounts pointed to container-internal paths.
19 lines
533 B
YAML
19 lines
533 B
YAML
services:
|
|
upaas:
|
|
build: .
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ${HOST_DATA_DIR:-./data}:/var/lib/upaas
|
|
environment:
|
|
- UPAAS_HOST_DATA_DIR=${HOST_DATA_DIR:-./data}
|
|
# Optional: uncomment to enable debug logging
|
|
# - DEBUG=true
|
|
# Optional: Sentry error reporting
|
|
# - SENTRY_DSN=https://...
|
|
# Optional: Prometheus metrics auth
|
|
# - METRICS_USERNAME=prometheus
|
|
# - METRICS_PASSWORD=secret
|