23 lines
643 B
YAML
23 lines
643 B
YAML
services:
|
|
rustpad:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: rustpad:${IMAGE_TAG:-local}
|
|
restart: unless-stopped
|
|
environment:
|
|
APP_HOST: ${APP_HOST:-0.0.0.0}
|
|
APP_PORT: ${APP_PORT:-3000}
|
|
DATABASE_URL: ${DATABASE_URL:-sqlite:///data/rustpad.db?mode=rwc}
|
|
DATABASE_MAX_CONNECTIONS: ${DATABASE_MAX_CONNECTIONS:-8}
|
|
STATIC_DIR: ${STATIC_DIR:-/app/static}
|
|
ASSET_VERSION: ${ASSET_VERSION:-0.0.1}
|
|
RUST_LOG: ${RUST_LOG:-rustpad=info,tower_http=info}
|
|
ports:
|
|
- "${RUSTPAD_PORT:-3000}:${APP_PORT:-3000}"
|
|
volumes:
|
|
- rustpad_data:/data
|
|
|
|
volumes:
|
|
rustpad_data:
|