mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-20 21:23:41 +03:00
Arcane resolves the Docker socket's group once at startup when it drops to PUID/PGID. If it starts before dockerd has created the socket it never gets the group and keeps failing with permission denied. Add a healthcheck on the dind service and make arcane depend on it being healthy.
56 lines
1.7 KiB
YAML
56 lines
1.7 KiB
YAML
version: "3.7"
|
|
|
|
services:
|
|
app_proxy:
|
|
environment:
|
|
APP_HOST: arcane_arcane_1
|
|
APP_PORT: 3552
|
|
|
|
docker:
|
|
image: docker:27.2.0-dind@sha256:f9f72ad901a78f27be922b2d320bbc263174f12919c1b37e6a01f828fa904565
|
|
privileged: true
|
|
network_mode: host
|
|
stop_grace_period: 1m
|
|
restart: on-failure
|
|
environment:
|
|
DOCKER_ENSURE_BRIDGE: "dind0:10.32.0.1/16"
|
|
# Keep Docker on the nftables backend selected by entrypoint.sh.
|
|
# An empty value disables legacy auto-selection; "false" enables it.
|
|
DOCKER_IPTABLES_LEGACY: ""
|
|
entrypoint: /entrypoint.sh
|
|
command: >
|
|
dockerd
|
|
--bridge dind0
|
|
--data-root /data/data
|
|
--exec-root /data/exec
|
|
--host unix:///data/docker.sock
|
|
--pidfile /data/docker.pid
|
|
volumes:
|
|
- ${APP_DATA_DIR}/entrypoint.sh:/entrypoint.sh
|
|
- ${APP_DATA_DIR}/data/docker:/data
|
|
# Arcane picks up the socket's group only once at startup, so it must not
|
|
# start before dockerd has created the socket.
|
|
healthcheck:
|
|
test: ["CMD", "docker", "--host", "unix:///data/docker.sock", "version"]
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 6
|
|
start_period: 5m
|
|
|
|
arcane:
|
|
image: ghcr.io/getarcaneapp/arcane:v2.17.3@sha256:2e0dc9f5ef03599181a49baf6470055d82e24d9cb15bbc62498ea642c0f882a7
|
|
stop_grace_period: 15s
|
|
depends_on:
|
|
docker:
|
|
condition: service_healthy
|
|
restart: on-failure
|
|
environment:
|
|
APP_URL: http://${DEVICE_DOMAIN_NAME}:3552
|
|
PUID: 1000
|
|
PGID: 1000
|
|
ENCRYPTION_KEY: ${APP_PASSWORD}
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/app_data:/app/data
|
|
- ${APP_DATA_DIR}/data/projects:/app/data/projects
|
|
- ${APP_DATA_DIR}/data/docker:/var/run
|