Update docker-compose.yml and move it to the root to make it more discoverable.

This commit is contained in:
Sebastian Jeltsch
2025-07-11 15:42:58 +02:00
parent e091f8212d
commit 9b576e4696
2 changed files with 17 additions and 15 deletions

View File

@@ -1,15 +0,0 @@
services:
trail:
image: docker.io/trailbase/trailbase:latest
# build: .
ports:
- "${PORT:-4000}:4000"
restart: unless-stopped
volumes:
- ${DATA_DIR:-.}/traildepot:/app/traildepot
environment:
# Override the default env-logger.
# RUST_LOG: "info,refinery_core=warn"
RUST_BACKTRACE: "1"
command: "/app/trail --data-dir /app/traildepot run --address 0.0.0.0:4000"

17
docker-compose.yml Normal file
View File

@@ -0,0 +1,17 @@
services:
trail:
image: docker.io/trailbase/trailbase:latest
ports:
- "${PORT:-4000}:4000"
restart: unless-stopped
volumes:
# NOTE: Docker compose will automatically create missing directories with
# "root" ownership. However, the TrailBase image drops root privileges.
# You therefore need to ensure that a `traildepot` folder with the
# appropriate permissions exist. Otherwise, you'll see "PermissionDenied"
# errors in the logs.
- ${DATA_DIR:-.}/traildepot:/app/traildepot
environment:
RUST_BACKTRACE: "1"
# command: "/app/trail --data-dir /app/traildepot run --address 0.0.0.0:4000"