mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 01:57:10 +00:00
b2b2733c4d
refactor: move build_tar to utils::compress refactor: move choose_restore_path to utils::common docs: remove docker-volume README section fix: keep archive path for multi-file non-docker-volume restores docs: trim docker-volume README section to essentials refactor: run docker-volume backup/restore inside spawn_blocking like other providers docs: enable docker socket, add volume example and security notes feat: sweep orphaned ephemeral helper containers on startup feat: docker-volume clean-replace restore via upload_to_container fix: serialize env-var access in docker-volume tests to avoid setenv/getenv UB feat: docker-volume backup via download_from_container feat: docker-volume ping via inspect_volume fix: return extraction dir for multi-file restore archives feat: gzip already-tar inputs directly instead of double-wrapping feat: docker helper (client, self-image, container lifecycle, sweep) feat: docker-volume provider
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
services:
|
|
rust-app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: dev
|
|
container_name: rust-dev
|
|
volumes:
|
|
- .:/app
|
|
- cargo-registry:/usr/local/cargo/registry
|
|
- cargo-git:/usr/local/cargo/git
|
|
- ./databases.json:/config/config.json
|
|
#- ./databases.toml:/config/config.toml
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
# - cargo-target:/app/target
|
|
- databases_sqlite-data:/sqlite-data/workspace/data
|
|
- ./scripts/sqlite/test-db:/sqlite-data-2/workspace/data
|
|
environment:
|
|
APP_ENV: development
|
|
LOG: debug
|
|
TZ: "Europe/Paris"
|
|
EDGE_KEY: "eyJzZXJ2ZXJVcmwiOiJodHRwOi8vbG9jYWxob3N0Ojg4ODciLCJhZ2VudElkIjoiNDA1MTA4YzQtMDJjYy00NTlhLTkxNjItODExNTc3NjAzMjhjIiwibWFzdGVyS2V5QjY0IjoiMUh0djdtWCtYVkJxL0IzUEV2WDlZZjlQeUdVZW5oRHlXemo5THRqNW90WT0ifQ=="
|
|
#CHUNK_SIZE_MB: "1"
|
|
#POOLING: 1
|
|
#DATABASES_CONFIG_FILE: "config.toml"
|
|
extra_hosts:
|
|
- "localhost:host-gateway"
|
|
networks:
|
|
- portabase
|
|
cpus: "1.50"
|
|
mem_limit: 4g
|
|
memswap_limit: 4g
|
|
pids_limit: 512
|
|
|
|
|
|
volumes:
|
|
cargo-registry:
|
|
cargo-git:
|
|
# cargo-target:
|
|
databases_sqlite-data:
|
|
external: true
|
|
|
|
networks:
|
|
portabase:
|
|
name: portabase_network
|
|
external: true
|
|
|