28 lines
1 KiB
YAML
28 lines
1 KiB
YAML
services:
|
|
life-towers:
|
|
# Default to a registry image so `docker compose pull && up -d` deploys
|
|
# a new build. Override LIFE_TOWERS_IMAGE in your `.env` to pin a tag,
|
|
# or set it to e.g. `life-towers:local` and uncomment `build: .` for
|
|
# local builds.
|
|
image: ${LIFE_TOWERS_IMAGE:-life-towers:local}
|
|
# build: . # uncomment for local builds (or use docker-compose.dev.yml)
|
|
pull_policy: ${LIFE_TOWERS_PULL_POLICY:-missing}
|
|
ports:
|
|
- "${LIFE_TOWERS_PORT:-8000}:8000"
|
|
volumes:
|
|
# Named volume inherits ownership from the image (UID 1000 / appuser).
|
|
# To switch to a bind mount for easy host-side backups, replace with:
|
|
# - ./data:/data
|
|
# and first run: `mkdir -p data && sudo chown 1000:1000 data`.
|
|
- life-towers-data:/data
|
|
environment:
|
|
LIFE_TOWERS_ALLOWED_ORIGIN: "${LIFE_TOWERS_ALLOWED_ORIGIN:-}"
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
volumes:
|
|
life-towers-data:
|