Mercurial > libervia-backend
annotate docker/docker-compose_e2e.yml @ 3424:2da32cdf4e53
docker(libervia): build site in the image:
this will avoid a build each time the container starts fresh (notably with tests), as this
is time and resource consuming (notably with node modules which would need to be
downloaded each time).
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 27 Nov 2020 16:25:02 +0100 |
parents | 0653be94ee5e |
children | d4558f3cbf13 |
rev | line source |
---|---|
3381 | 1 version: "3.6" |
2 services: | |
3 | |
4 prosody: | |
5 build: prosody_e2e | |
6 image: salutatoi/prosody_e2e | |
7 depends_on: | |
8 # we need to depend on sat to get IP address of the container for conf | |
9 - sat | |
10 tmpfs: /var/lib/prosody | |
11 tmpfs: /var/log/prosody | |
12 networks: | |
13 default: | |
14 aliases: | |
15 - server1.test | |
16 - server2.test | |
17 - server3.test | |
18 | |
19 db: | |
20 image: postgres | |
21 environment: | |
22 POSTGRES_PASSWORD: test_e2e | |
23 POSTGRES_DB: pubsub | |
24 tmpfs: /var/lib/postgresql/data | |
25 | |
26 pubsub: | |
27 build: pubsub | |
28 image: salutatoi/sat_pubsub | |
29 depends_on: | |
30 - db | |
31 - prosody | |
32 environment: | |
33 PGHOST: db | |
34 PGUSER: postgres | |
35 PGPASSWORD: test_e2e | |
36 SAT_PUBSUB_RHOST: server1.test | |
37 SAT_PUBSUB_JID: pubsub.server1.test | |
38 SAT_PUBSUB_XMPP_PWD: test_e2e | |
39 | |
40 sat: | |
41 build: backend_e2e | |
42 image: salutatoi/sat_e2e | |
3387
b3e7e3c49d8f
docker (compose): test environment variable + network alias:
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
43 environment: |
b3e7e3c49d8f
docker (compose): test environment variable + network alias:
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
44 SAT_TEST_ENV_E2E: "1" |
b3e7e3c49d8f
docker (compose): test environment variable + network alias:
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
45 networks: |
b3e7e3c49d8f
docker (compose): test environment variable + network alias:
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
46 default: |
b3e7e3c49d8f
docker (compose): test environment variable + network alias:
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
47 aliases: |
b3e7e3c49d8f
docker (compose): test environment variable + network alias:
Goffi <goffi@goffi.org>
parents:
3381
diff
changeset
|
48 - sat.test |
3423
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
49 |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
50 libervia: |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
51 image: salutatoi/libervia_e2e |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
52 build: libervia_e2e |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
53 depends_on: |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
54 - sat |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
55 environment: |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
56 LIBERVIA_PASSPHRASE: test_e2e |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
57 ports: |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
58 - "8080" |
0653be94ee5e
docker: added libervia e2e image and include it in `docker-compose_e2e`:
Goffi <goffi@goffi.org>
parents:
3387
diff
changeset
|
59 - "8443" |