comparison 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
comparison
equal deleted inserted replaced
163:a63f6d360326 164:29873a41aae1
1 ###############################################################
2 # #
3 # Salut à Toi/data #
4 # This Dockerfile build a « Salut à Toi » data image #
5 # Salut à Toi is a multi-frontends multi-purposes XMPP client #
6 # #
7 ###############################################################
8
9 FROM salutatoi/prosody:latest
10
11 MAINTAINER Goffi <goffi@goffi.org>
12
13 ###########
14 # VOLUMES #
15 ###########
16
17 USER root
18
19 # sat user home, where most of config files and databases are located
20 VOLUME ["/home/sat"]
21
22 # Prosody
23 VOLUME ["/var/lib/prosody"]
24 VOLUME ["/etc/prosody/prosody_sat_cfg"]
25
26 # Postgres database, used in SàT PubSub
27 VOLUME ["/var/lib/postgresql"]
28
29 # TLS certificates
30 VOLUME ["/usr/share/sat/certificates"]
31
32 # Logs not shown directly with docker logs
33 VOLUME ["/var/log"]
34
35 ##########
36 # BACKUP #
37 ##########
38
39 WORKDIR /volumes
40 RUN ln -s /home/sat sat && \
41 ln -s /usr/share/sat/certificates certificates && \
42 ln -s /var/lib/prosody prosody && \
43 ln -s /etc/prosody/prosody_sat_cfg prosody_sat_cfg && \
44 ln -s /var/lib/postgresql postgresql && \
45 ln -s /var/log log
46 VOLUME ["/volumes"]
47
48 ENTRYPOINT ["/bin/true"]