-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathobsidian-sync.container
More file actions
55 lines (48 loc) · 1.54 KB
/
obsidian-sync.container
File metadata and controls
55 lines (48 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Podman Quadlet for obsidian-headless-sync-docker
#
# Before starting, create the environment file with your credentials:
# mkdir -p ~/.config/obsidian-sync
# install -m 600 /dev/null ~/.config/obsidian-sync/obsidian-sync.env
# # Then populate it — see Environment Variables section below.
[Unit]
Description=Obsidian Headless Sync
Documentation=https://github.com/crosbyh/obsidian-headless-sync-docker
After=network-online.target
Wants=network-online.target
[Container]
Image=ghcr.io/crosbyh/obsidian-headless-sync-docker:latest
ContainerName=obsidian-sync
Pull=newer
AutoUpdate=registry
# Secrets and required configuration.
# File must exist before the service starts.
# Required keys: OBSIDIAN_AUTH_TOKEN, VAULT_NAME
#
# Example ~/.config/obsidian-sync/obsidian-sync.env:
# OBSIDIAN_AUTH_TOKEN=<token from get-token>
# VAULT_NAME=My Vault
# VAULT_PASSWORD=
# PUID=0
# PGID=0
# DEVICE_NAME=obsidian-podman
# CONFLICT_STRATEGY=merge
# EXCLUDED_FOLDERS=
# FILE_TYPES=
#
# %E expands to ~/.config for user services, /etc/xdg for system services.
EnvironmentFile=%E/obsidian-sync/obsidian-sync.env
Environment=PUID=0
Environment=PGID=0
Environment=VAULT_PATH=/vault
Environment=DEVICE_NAME=obsidian-podman
Environment=CONFLICT_STRATEGY=merge
Environment=EXCLUDED_FOLDERS=
Environment=FILE_TYPES=
# Vault volume — %h expands to the home directory of the service user.
# Change the host path to wherever you want vault files stored.
Volume=%h/obsidian-vault:/vault:z
[Service]
Restart=always
RestartSec=10
[Install]
WantedBy=default.target