changeset 3511:db0f4d419448

docker: add demo images and compose file
author Goffi <goffi@goffi.org>
date Fri, 23 Apr 2021 09:59:16 +0200
parents 059742e925f2
children d018d2d8a9e5
files docker/backend-dev-demo/Dockerfile docker/backend-dev-demo/certificates/README docker/backend-dev-demo/certificates/minica-key.pem docker/backend-dev-demo/certificates/minica.pem docker/backend-dev-demo/certificates/server1.test/cert.pem docker/backend-dev-demo/certificates/server1.test/key.pem docker/backend-dev-demo/libervia.conf docker/libervia-web-dev-demo/Dockerfile docker/libervia-web-dev-demo/certificates/README docker/libervia-web-dev-demo/certificates/minica-key.pem docker/libervia-web-dev-demo/certificates/minica.pem docker/libervia-web-dev-demo/certificates/server1.test/cert.pem docker/libervia-web-dev-demo/certificates/server1.test/key.pem docker/libervia-web-dev-demo/libervia.conf docker/prosody-demo/Dockerfile docker/web-demo.yml
diffstat 16 files changed, 322 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/backend-dev-demo/Dockerfile	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,29 @@
+FROM libervia/backend:dev
+
+LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
+
+USER root
+
+# we install pre-generated demo certificates so they can be trusted
+COPY --chown=root:root certificates/minica.pem /usr/local/share/ca-certificates/minica.crt
+COPY --chown=root:tls-cert certificates/server1.test/cert.pem /usr/share/libervia/certificates/server1.test.pem
+COPY --chown=root:tls-cert certificates/server1.test/key.pem /usr/share/libervia/certificates/server1.test-key.pem
+RUN update-ca-certificates
+
+COPY --chown=root:root libervia.conf /etc/libervia.conf
+
+USER libervia
+
+RUN ./entrypoint.sh \
+    # we create the file sharing component which will autoconnect when backend is started
+    jp profile create file_sharing -j files.server1.test -p "" --xmpp-password test_e2e -C file_sharing -A && \
+    libervia-backend stop
+
+RUN ./entrypoint.sh \
+    # and a demo account
+	jp profile create demo -j demo@server1.test -p "demo"  && \
+    libervia-backend stop
+
+USER libervia
+# HTTP Upload
+EXPOSE 7777
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/backend-dev-demo/certificates/README	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,2 @@
+these certificates are used for demo purpose only. Those must be the same as in
+backend_e2e (they are generated there)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/backend-dev-demo/certificates/minica-key.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEAvO1Mq06trCFWhsFzX9nBV+2/jJLJ0ishn5VkbeWkayXf609t
+5Lg6cQealXMvAjPYK9Kuy4patmJ0iMT53/x6rmfbhbcp40Licuc7RGrpcNgbllAA
+uIcosisIsfNzvOLkTA2+nxj7F7jkOKmvtoNU8zc5PKEObsrVd04CuhH4/WPwG4yT
+Lfkpuq5Db3B5JRzghCWDgi1U9aTvCcHOjDbraBwJZSsYBN9RY+KFVHEDQSQaWAkj
+UoimwRSmV+G65/+vjIkkEIKNmzQ+FaK5kYNFUjVz1gWiq8SAwL1p4B5pFJ35ze6c
+WDko5OxccMs0k8NQJ8GxIvf5PmApr9lvIuUuCQIDAQABAoIBABLTCiqfgkp+X+K5
+b8eDKPKb69QT5CwexBDkj8crdICAm5kUpvx9JsWQXmS5v1tW0xk6utPpCzTVBouC
+JOueepLaIlNmdrQAPBP62jrs9CmcPtNxUUERpopqI0mn2kZdzSWO0QmFMa+haowC
+zFFBMLuzKu7RlWCQsUhb64WiuM52dOeQLzSCCzQK0+6a7Ox3uSwSCab+Q+LLbJDi
+XKKnYlQR0oX1jl82GOxn36wpXKmOqSfqrrPMP4tvD1l97M+POJ8jbWBCn5aiWdqN
+pWGgNpzzvsSEdnzDoKf+H/L7B9joNic+csch5KKF7WR6t1/MOj9hR9zf9bJKHRmC
+eSnihIkCgYEA3yShCC1X8ljhIRf7t26oVTdmt/WFT676afq6gQJUVsOANq/QVsHB
+gbDDltQSxQnNVOIt+wAIvz349KbSvPQ22+CpADQjuAdXumXctJOI38OydVW+0vPn
+nkdearUEOayuxC9Ztsia9gF/udFWNZmYVi2PP5cNYPsxDS77g9EgNUsCgYEA2L7l
+AUrBD6BKbhr4a81TKB9g37z1X8uD49dSq9KldnpDRybinzQLOTdc3tGOvrCVT/vI
+PLB5B8AByfnta/pek+mAdoOxFuuF7v2m0OE37+ZkbR+haTETeplouLcZcnJcO4V3
+unQSGA6Gv4oMK85akWW2RqbRKxwQ8s4xeZ1d2XsCgYAw848kBRZ7AsZ4hRNiXTMu
+ZpXxGzpgjak/oJJThNhNpFu3I4CX16+ErOtrZiCr+weBbJDbtFk24vh/ay1l6Ek0
+mSdZ9RY0499586ikMI1hUUQP+3x+OKWCEnQDAqznnhtEzIJo178u4otLj0HTRlul
+5B69u3xi3xgWpUzl0PW42wKBgQCnOE/x+TyN07rYy9IRSa34bI0O0Pf2Wkt9Aujz
+S2cAyz8Qq/13mm12TTJHbiHVGON5e+V2fShDRG2c6Ee2YMmLEEFeLif4aOlCA0wq
+JzhCy9t7HUYopAZFNgpHSGxHkdd6zHQc0+QJz1tCdz0ApwnU10YTqCwEOHkS+uXM
+0A5R9QKBgQCT2AgHJBHb6gksum1ipSc9v13x+P59hrbJ8sGxRZvQGfB7igXDxkBV
+t0/nKltzyZFFNdTSUOHRLrygjTxpu93XWtpA36N7R8SbfGqMsRJeTfdV4vAZtR2x
+EG0OyJaB/EfwlhXdAfF11jPoI6NQmBAeAoyWEbcitmuR6fxrqYWOZQ==
+-----END RSA PRIVATE KEY-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/backend-dev-demo/certificates/minica.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDSzCCAjOgAwIBAgIIYcWiSXEWKycwDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE
+AxMVbWluaWNhIHJvb3QgY2EgNjFjNWEyMCAXDT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CERTIFICATE-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/backend-dev-demo/certificates/server1.test/cert.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,21 @@
+-----BEGIN CERTIFICATE-----
+MIIDijCCAnKgAwIBAgIITwyWOI+1bQ8wDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE
+AxMVbWluaWNhIHJvb3QgY2EgNjFjNWEyMB4XDTIxMDQxNDE2MjA0NFoXDTIzMDUx
+NDE2MjA0NFowFzEVMBMGA1UEAxMMc2VydmVyMS50ZXN0MIIBIjANBgkqhkiG9w0B
+AQEFAAOCAQ8AMIIBCgKCAQEAtXAh2Mn5eIFLI5v1Zz8+BRsPKfjn1RBBs+ZVVysJ
+ez4DOOXcouWjOqcMPhWK/lN3NNm3SOWJQRJEZjHaU197YioX1cr1KP1pfAWlm03t
+MZpf/XoeoKpV+6svM2m6emNh6Y812ATin2DIigm2b4UrHiP8Seppd84dReGdpaD9
+7zCZBKv5fHCwcY+irjsV+1vRapLDvDMIL/6Vk8Fw3m9UlIhdZNudTKgxo8lYbhuo
+QsyhG0ydALgp+eeNKnZZdBCpdFOtZztbrS0DifQvkKxbv7+V3IAQ+4lLAfLoFNuV
+H5cukfuJbR9UjyqvBH16yCE2VNvL+dDZXYmh/q3yTF0MgQIDAQABo4HQMIHNMA4G
+A1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYD
+VR0TAQH/BAIwADAfBgNVHSMEGDAWgBRQfEdSX8zI0mvbVoU7AsYtFA5W8zBtBgNV
+HREEZjBkggxzZXJ2ZXIxLnRlc3SCDiouc2VydmVyMS50ZXN0ggxzZXJ2ZXIyLnRl
+c3SCDHNlcnZlcjMudGVzdIIVbGliZXJ2aWEtYmFja2VuZC50ZXN0ghFsaWJlcnZp
+YS13ZWIudGVzdDANBgkqhkiG9w0BAQsFAAOCAQEAetIuuZd7O0G8ssueqddVfedM
+syL4NZp/I6AWy9qiUcKf9lhGtLE3AblL5fhHanty94B4EyW5+8fjSrSSSRbUYkFH
+dbS41ptzuPGtU9S7OFp7C1TAZHeAgCdvJ4ZnD2YFNQXJ89bp+ZEi4Znu1avqckJP
+gMAd695gZaobZzehwAG00Xd9ELVku3Cnu4gsxMbgvcRFqq4Bplk/YYtDtd9FG2Qr
+mSBuUGwGikr9C4xEUw69uIq1SK98qaOBEwUgKYb/Rvh03OP5F2u36zdH8J3W/Mjv
+OGYo4RCLZFG0CntYLFTWOAoYRs7C7dlgwXRNgaNaRiseiPDka1DAaf6BQ8riMw==
+-----END CERTIFICATE-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/backend-dev-demo/certificates/server1.test/key.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEAtXAh2Mn5eIFLI5v1Zz8+BRsPKfjn1RBBs+ZVVysJez4DOOXc
+ouWjOqcMPhWK/lN3NNm3SOWJQRJEZjHaU197YioX1cr1KP1pfAWlm03tMZpf/Xoe
+oKpV+6svM2m6emNh6Y812ATin2DIigm2b4UrHiP8Seppd84dReGdpaD97zCZBKv5
+fHCwcY+irjsV+1vRapLDvDMIL/6Vk8Fw3m9UlIhdZNudTKgxo8lYbhuoQsyhG0yd
+ALgp+eeNKnZZdBCpdFOtZztbrS0DifQvkKxbv7+V3IAQ+4lLAfLoFNuVH5cukfuJ
+bR9UjyqvBH16yCE2VNvL+dDZXYmh/q3yTF0MgQIDAQABAoIBAFCxZSxAb6Yrgpp8
+s0DO/KtSpITbQWgeCcqTxyK0bkwUgWRdvqnoDZd5UdWOyTlhL6QerAhMpaV+FVOK
+Gnp3/azj4aPg1vX69l4FOOkAWFx2NvjJxjNYblM2iBCKljf2WUaBvcWsLooJhkb2
+GOAyTsHh6UOKcIuq7JP2yqEuH6GvsD9z5B82d/uWtCMlf4PA26R6GGrEaJ4ARY0y
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IVATE KEY-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/backend-dev-demo/libervia.conf	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,10 @@
+[DEFAULT]
+xmpp_domain = server1.test
+email_server = libervia-backend.test
+email_port = 8025
+email_admins_list = admin@server1.test
+
+[component file_sharing]
+http_upload_public_facing_url = http://localhost:7777
+http_upload_connection_type = http
+http_upload_port = 7777
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev-demo/Dockerfile	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,12 @@
+FROM libervia/web:dev
+
+LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
+
+ARG DEBIAN_FRONTEND=noninteractive
+
+USER root
+
+COPY --chown=root:root libervia.conf /etc/libervia.conf
+
+WORKDIR /home/libervia
+USER libervia
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev-demo/certificates/README	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,2 @@
+this certificates are used to enable TLS during tests. Those must be the same as in
+backend_e2e (they are generated there)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev-demo/certificates/minica-key.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEAvO1Mq06trCFWhsFzX9nBV+2/jJLJ0ishn5VkbeWkayXf609t
+5Lg6cQealXMvAjPYK9Kuy4patmJ0iMT53/x6rmfbhbcp40Licuc7RGrpcNgbllAA
+uIcosisIsfNzvOLkTA2+nxj7F7jkOKmvtoNU8zc5PKEObsrVd04CuhH4/WPwG4yT
+Lfkpuq5Db3B5JRzghCWDgi1U9aTvCcHOjDbraBwJZSsYBN9RY+KFVHEDQSQaWAkj
+UoimwRSmV+G65/+vjIkkEIKNmzQ+FaK5kYNFUjVz1gWiq8SAwL1p4B5pFJ35ze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Cdz0ApwnU10YTqCwEOHkS+uXM
+0A5R9QKBgQCT2AgHJBHb6gksum1ipSc9v13x+P59hrbJ8sGxRZvQGfB7igXDxkBV
+t0/nKltzyZFFNdTSUOHRLrygjTxpu93XWtpA36N7R8SbfGqMsRJeTfdV4vAZtR2x
+EG0OyJaB/EfwlhXdAfF11jPoI6NQmBAeAoyWEbcitmuR6fxrqYWOZQ==
+-----END RSA PRIVATE KEY-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev-demo/certificates/minica.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDSzCCAjOgAwIBAgIIYcWiSXEWKycwDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE
+AxMVbWluaWNhIHJvb3QgY2EgNjFjNWEyMCAXDTIwMTExOTE3MTAwMFoYDzIxMjAx
+MTE5MTcxMDAwWjAgMR4wHAYDVQQDExVtaW5pY2Egcm9vdCBjYSA2MWM1YTIwggEi
+MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC87UyrTq2sIVaGwXNf2cFX7b+M
+ksnSKyGflWRt5aRrJd/rT23kuDpxB5qVcy8CM9gr0q7Lilq2YnSIxPnf/HquZ9uF
+tynjQuJy5ztEaulw2BuWUAC4hyiyKwix83O84uRMDb6fGPsXuOQ4qa+2g1TzNzk8
+oQ5uytV3TgK6Efj9Y/AbjJMt+Sm6rkNvcHklHOCEJYOCLVT1pO8Jwc6MNutoHAll
+KxgE31Fj4oVUcQNBJBpYCSNSiKbBFKZX4brn/6+MiSQQgo2bND4VormRg0VSNXPW
+BaKrxIDAvWngHmkUnfnN7pxYOSjk7FxwyzSTw1AnwbEi9/k+YCmv2W8i5S4JAgMB
+AAGjgYYwgYMwDgYDVR0PAQH/BAQDAgKEMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggr
+BgEFBQcDAjASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBRQfEdSX8zI0mvb
+VoU7AsYtFA5W8zAfBgNVHSMEGDAWgBRQfEdSX8zI0mvbVoU7AsYtFA5W8zANBgkq
+hkiG9w0BAQsFAAOCAQEAA6LLnPz043imkMXaeXgAtsKk2JYdpGAZeCeHolzOFpMQ
+AQgq+3PkVbcpopbXtXxuiTTAjgVIoMnn6tKQbcSeDP6ydOJhjrDfUN8qx03peYw0
+HOqCvGwqssR7ew6MhyVPSyJOdz74NrSoZdxn7bz369A+R6BG7QyKyl6OlW4x+tuI
+htLQ9vWOxVRBORuEFQ/F3hxwDJY1aT5oCEYzOy7pvOrAh+gnoAb++isi/uwxSufX
+GQs1jejANCi+Rkxe918woDH4mosr9ypRapWPJU0flyxlQUQyAInu4oyDYP3Peits
+D1Y5DkLN/dxIxg1drlNgIGDOCxbV85iDKVPnQ5fmeA==
+-----END CERTIFICATE-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev-demo/certificates/server1.test/cert.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,21 @@
+-----BEGIN CERTIFICATE-----
+MIIDijCCAnKgAwIBAgIITwyWOI+1bQ8wDQYJKoZIhvcNAQELBQAwIDEeMBwGA1UE
+AxMVbWluaWNhIHJvb3QgY2EgNjFjNWEyMB4XDTIxMDQxNDE2MjA0NFoXDTIzMDUx
+NDE2MjA0NFowFzEVMBMGA1UEAxMMc2VydmVyMS50ZXN0MIIBIjANBgkqhkiG9w0B
+AQEFAAOCAQ8AMIIBCgKCAQEAtXAh2Mn5eIFLI5v1Zz8+BRsPKfjn1RBBs+ZVVysJ
+ez4DOOXcouWjOqcMPhWK/lN3NNm3SOWJQRJEZjHaU197YioX1cr1KP1pfAWlm03t
+MZpf/XoeoKpV+6svM2m6emNh6Y812ATin2DIigm2b4UrHiP8Seppd84dReGdpaD9
+7zCZBKv5fHCwcY+irjsV+1vRapLDvDMIL/6Vk8Fw3m9UlIhdZNudTKgxo8lYbhuo
+QsyhG0ydALgp+eeNKnZZdBCpdFOtZztbrS0DifQvkKxbv7+V3IAQ+4lLAfLoFNuV
+H5cukfuJbR9UjyqvBH16yCE2VNvL+dDZXYmh/q3yTF0MgQIDAQABo4HQMIHNMA4G
+A1UdDwEB/wQEAwIFoDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDAYD
+VR0TAQH/BAIwADAfBgNVHSMEGDAWgBRQfEdSX8zI0mvbVoU7AsYtFA5W8zBtBgNV
+HREEZjBkggxzZXJ2ZXIxLnRlc3SCDiouc2VydmVyMS50ZXN0ggxzZXJ2ZXIyLnRl
+c3SCDHNlcnZlcjMudGVzdIIVbGliZXJ2aWEtYmFja2VuZC50ZXN0ghFsaWJlcnZp
+YS13ZWIudGVzdDANBgkqhkiG9w0BAQsFAAOCAQEAetIuuZd7O0G8ssueqddVfedM
+syL4NZp/I6AWy9qiUcKf9lhGtLE3AblL5fhHanty94B4EyW5+8fjSrSSSRbUYkFH
+dbS41ptzuPGtU9S7OFp7C1TAZHeAgCdvJ4ZnD2YFNQXJ89bp+ZEi4Znu1avqckJP
+gMAd695gZaobZzehwAG00Xd9ELVku3Cnu4gsxMbgvcRFqq4Bplk/YYtDtd9FG2Qr
+mSBuUGwGikr9C4xEUw69uIq1SK98qaOBEwUgKYb/Rvh03OP5F2u36zdH8J3W/Mjv
+OGYo4RCLZFG0CntYLFTWOAoYRs7C7dlgwXRNgaNaRiseiPDka1DAaf6BQ8riMw==
+-----END CERTIFICATE-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev-demo/certificates/server1.test/key.pem	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,27 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEAtXAh2Mn5eIFLI5v1Zz8+BRsPKfjn1RBBs+ZVVysJez4DOOXc
+ouWjOqcMPhWK/lN3NNm3SOWJQRJEZjHaU197YioX1cr1KP1pfAWlm03tMZpf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DRdo3
+PVyOkoQsFFqdCl1osUbTzioLTz6hXzVzqUTU7Fzv1WF7d7jXzQvhrtJYuVGTBZSM
+JIeeulTcyTRS7N90ldfm//8CgYEAl1ia+jUFtRG51Dt+7JFbQ+/At/oIbMWrUIA9
+0akmQdwnAyGw/xA7AirRoiGrbIXyEAE+C1sJP4iPVDyjQ5tgxLALh/VB5RuSp7Qi
+bG6/qcuke/ZGLdflSqnrVSDGFm5UDOKFmkwAUUIoMVXrJxEGB3ockvERCp+cm6Li
+9gZjP8UCgYATWrDUb3+LOVHIVuYcrd9CDfO7OHT1yxmnef2hBYYs8MQ2ewVBTWkq
+jzTPuUCub6T72uVpefOciBByqbgUUUnXgfX8nTT2BEBGjoubf3/77RvsEnrEGEI/
+XncILicM1dwQXqR5fWDcpWRhehIzlzF70iZ3Ws1QC63gv4Z6VGifMQ==
+-----END RSA PRIVATE KEY-----
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/libervia-web-dev-demo/libervia.conf	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,4 @@
+[web]
+connection_type = http
+port = 8880
+security_warning = false
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/prosody-demo/Dockerfile	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,5 @@
+FROM libervia/prosody:e2e
+
+LABEL maintainer="Goffi <tmp_dockerfiles@goffi.org>"
+
+RUN prosodyctl register demo server1.test demo
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/web-demo.yml	Fri Apr 23 09:59:16 2021 +0200
@@ -0,0 +1,68 @@
+version: "3.6"
+services:
+
+  prosody:
+    image: libervia/prosody:demo
+    build: prosody-demo
+    depends_on:
+      # we need to depend on backend to get IP address of the container for conf
+      - backend
+    tmpfs: /var/lib/prosody
+    tmpfs: /var/log/prosody
+    networks:
+      default:
+        aliases:
+          - server1.test
+
+  db:
+    image: postgres
+    environment:
+      POSTGRES_PASSWORD: test_e2e
+      POSTGRES_DB: pubsub
+    tmpfs: /var/lib/postgresql/data
+
+  pubsub:
+    build: pubsub
+    image: libervia/pubsub
+    depends_on:
+      - db
+      - prosody
+    environment:
+      PGHOST: db
+      PGUSER: postgres
+      PGPASSWORD: test_e2e
+      LIBERVIA_PUBSUB_RHOST: server1.test
+      LIBERVIA_PUBSUB_JID: pubsub.server1.test
+      LIBERVIA_PUBSUB_XMPP_PWD: test_e2e
+
+  backend:
+    image: libervia/backend:dev-demo
+    build: backend-dev-demo
+    volumes:
+      - libervia-web-demo_data:/home/libervia/.local/share/libervia
+    ports:
+      # HTTP Upload
+      - "7777:7777"
+    networks:
+      default:
+        aliases:
+          - libervia-backend.test
+
+  web:
+    image: libervia/web:dev-demo
+    build: libervia-web-dev-demo
+    depends_on:
+      - backend
+    environment:
+      LIBERVIA_PASSPHRASE: test_demo
+    volumes:
+      - libervia-web-demo_data:/home/libervia/.local/share/libervia
+    ports:
+      - "8880:8880"
+    networks:
+      default:
+        aliases:
+          - libervia-web.test
+
+volumes:
+  libervia-web-demo_data: