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