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