diff --git a/gitea/Containerfile b/gitea/Containerfile
index 30adf88..01550dd 100644
--- a/gitea/Containerfile
+++ b/gitea/Containerfile
@@ -107,6 +107,16 @@ COPY data/ /vol/data/
 # template secrets file to generate secrets
 RUN eval "echo \"$(cat app.secret.ini)\"" > app.secret.ini
 
+###
+### DB Auto Load/Dump
+###
+
+# copy service
+COPY assets/db-updown.service /etc/systemd/system/
+
+# enable service
+RUN systemctl enable db-updown.service
+
 ###
 ### Crontab
 ###
diff --git a/gitea/assets/db-updown.service b/gitea/assets/db-updown.service
new file mode 100644
index 0000000..5fa7215
--- /dev/null
+++ b/gitea/assets/db-updown.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Load/Dump database on start/stop
+After=postgresql.service
+Requires=postgresql.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile=/etc/environment
+ExecStart=/bin/bash -c "db-load /vol/data/sql/$DBNAME-updown.sql"
+ExecStop=/bin/bash -c "db-dump /vol/data/sql/$DBNAME-updown.sql"
+
+[Install]
+WantedBy=multi-user.target