comparison docker/web-demo.yml @ 3511:db0f4d419448

docker: add demo images and compose file
author Goffi <goffi@goffi.org>
date Fri, 23 Apr 2021 09:59:16 +0200
parents
children d018d2d8a9e5
comparison
equal deleted inserted replaced
3510:059742e925f2 3511:db0f4d419448
1 version: "3.6"
2 services:
3
4 prosody:
5 image: libervia/prosody:demo
6 build: prosody-demo
7 depends_on:
8 # we need to depend on backend to get IP address of the container for conf
9 - backend
10 tmpfs: /var/lib/prosody
11 tmpfs: /var/log/prosody
12 networks:
13 default:
14 aliases:
15 - server1.test
16
17 db:
18 image: postgres
19 environment:
20 POSTGRES_PASSWORD: test_e2e
21 POSTGRES_DB: pubsub
22 tmpfs: /var/lib/postgresql/data
23
24 pubsub:
25 build: pubsub
26 image: libervia/pubsub
27 depends_on:
28 - db
29 - prosody
30 environment:
31 PGHOST: db
32 PGUSER: postgres
33 PGPASSWORD: test_e2e
34 LIBERVIA_PUBSUB_RHOST: server1.test
35 LIBERVIA_PUBSUB_JID: pubsub.server1.test
36 LIBERVIA_PUBSUB_XMPP_PWD: test_e2e
37
38 backend:
39 image: libervia/backend:dev-demo
40 build: backend-dev-demo
41 volumes:
42 - libervia-web-demo_data:/home/libervia/.local/share/libervia
43 ports:
44 # HTTP Upload
45 - "7777:7777"
46 networks:
47 default:
48 aliases:
49 - libervia-backend.test
50
51 web:
52 image: libervia/web:dev-demo
53 build: libervia-web-dev-demo
54 depends_on:
55 - backend
56 environment:
57 LIBERVIA_PASSPHRASE: test_demo
58 volumes:
59 - libervia-web-demo_data:/home/libervia/.local/share/libervia
60 ports:
61 - "8880:8880"
62 networks:
63 default:
64 aliases:
65 - libervia-web.test
66
67 volumes:
68 libervia-web-demo_data: