switch to standalone only
This commit is contained in:
parent
98aa3f92fc
commit
2f054cf15d
2 changed files with 0 additions and 46 deletions
|
|
@ -1,46 +0,0 @@
|
|||
# Add this service to your Onyx docker-compose (same `onyx-network`).
|
||||
#
|
||||
# docker compose -f docker-compose.yml -f smb-connector/docker-compose.smb.yml up -d smb_connector
|
||||
#
|
||||
# The connector mounts the SMB/CIFS shares INSIDE the container (default mode) —
|
||||
# no host mount needed. Just give it the share + credentials via env (see
|
||||
# smb-connector/.env.example). For that, the container needs the two capabilities
|
||||
# and the unconfined apparmor profile below (required for mount.cifs in a
|
||||
# container; the host also needs the `cifs` kernel module, which is standard).
|
||||
services:
|
||||
smb_connector:
|
||||
build: ./smb-connector
|
||||
image: livtec/aido-smb-connector:local
|
||||
container_name: aido-smb-connector
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- onyx-network
|
||||
env_file:
|
||||
- path: ./smb-connector/.env
|
||||
required: false
|
||||
depends_on:
|
||||
api_server:
|
||||
condition: service_healthy
|
||||
|
||||
# --- required to mount SMB/CIFS shares inside the container ---------------
|
||||
cap_add:
|
||||
- SYS_ADMIN
|
||||
- DAC_READ_SEARCH
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
# If your host's Docker still refuses the mount, use privileged mode instead
|
||||
# of the two cap_add lines above:
|
||||
# privileged: true
|
||||
|
||||
volumes:
|
||||
# Persist the sync manifest + cached api-key/cc_pair (survives restarts).
|
||||
- ./smb-connector/state:/app/state
|
||||
# NOTE: no host bind-mounts of the shares are needed in in-container mode.
|
||||
# (Legacy host-mount mode still works: bind-mount the share here and OMIT
|
||||
# the SMB_SOURCE_*_SERVER/_UNC env for that source, e.g.
|
||||
# - /mnt/smb/finance:/mnt/smb/finance:ro )
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "6"
|
||||
Loading…
Add table
Reference in a new issue