diff docker_legacy/data/Dockerfile @ 164:29873a41aae1

docker: new docker files are now in sat main repos, this one is legacy
author Goffi <goffi@goffi.org>
date Fri, 01 Jan 2021 18:33:52 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker_legacy/data/Dockerfile	Fri Jan 01 18:33:52 2021 +0100
@@ -0,0 +1,48 @@
+###############################################################
+#                                                             #
+#                      Salut à Toi/data                       #
+#     This Dockerfile build a « Salut à Toi » data image      #
+# Salut à Toi is a multi-frontends multi-purposes XMPP client #
+#                                                             #
+###############################################################
+
+FROM salutatoi/prosody:latest
+
+MAINTAINER Goffi <goffi@goffi.org>
+
+###########
+# VOLUMES #
+###########
+
+USER root
+
+# sat user home, where most of config files and databases are located
+VOLUME ["/home/sat"]
+
+# Prosody
+VOLUME ["/var/lib/prosody"]
+VOLUME ["/etc/prosody/prosody_sat_cfg"]
+
+# Postgres database, used in SàT PubSub
+VOLUME ["/var/lib/postgresql"]
+
+# TLS certificates
+VOLUME ["/usr/share/sat/certificates"]
+
+# Logs not shown directly with docker logs
+VOLUME ["/var/log"]
+
+##########
+# BACKUP #
+##########
+
+WORKDIR /volumes
+RUN ln -s /home/sat sat && \
+ln -s /usr/share/sat/certificates certificates && \
+ln -s /var/lib/prosody prosody && \
+ln -s /etc/prosody/prosody_sat_cfg prosody_sat_cfg && \
+ln -s /var/lib/postgresql postgresql && \
+ln -s /var/log log
+VOLUME ["/volumes"]
+
+ENTRYPOINT ["/bin/true"]