summarylogtreecommitdiffstats
path: root/bitwarden-attachments.service
diff options
context:
space:
mode:
Diffstat (limited to 'bitwarden-attachments.service')
-rw-r--r--bitwarden-attachments.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/bitwarden-attachments.service b/bitwarden-attachments.service
new file mode 100644
index 00000000000..f00210ab7be
--- /dev/null
+++ b/bitwarden-attachments.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Bitwarden Attachments
+PartOf=bitwarden-server.service
+After=bitwarden-server.service
+
+[Service]
+ExecStart=/usr/bin/docker run --rm --name bitwarden-attachments \
+ --env-file /etc/bitwarden/uid.env \
+ --volume /var/lib/bitwarden/core/attachments:/etc/bitwarden/core/attachments \
+ --network bitwarden-net \
+ bitwarden/attachments:1.19.0
+ExecStop=/usr/bin/docker kill bitwarden-attachments
+Restart=on-failure
+
+[Install]
+WantedBy=bitwarden-server.service \ No newline at end of file