name: rustbox services: rustbox: build: context: .. dockerfile: docker/Dockerfile ports: - "${PORT:-3001}:${PORT:-3001}" environment: RUSTBOX_CONFIG: /etc/rustbox/rustbox.toml ENVIRONMENT: ${ENVIRONMENT:-development} HOST: ${HOST:-0.0.0.0} PORT: ${PORT:-3001} IMAP_HOST: ${IMAP_HOST:-mail.example.com} IMAP_PORT: ${IMAP_PORT:-993} SMTP_HOST: ${SMTP_HOST:-mail.example.com} SMTP_PORT: ${SMTP_PORT:-587} TLS_ENABLED: ${TLS_ENABLED:-true} RUST_LOG: ${RUST_LOG:-warn,rustbox=info,tower_http=info} volumes: - ./configs/single-sqlite.toml:/etc/rustbox/rustbox.toml:ro - rustbox-data:/var/lib/rustbox restart: unless-stopped volumes: rustbox-data: