forked from fishjam-dev/fishjam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-epmd.yaml
47 lines (43 loc) · 947 Bytes
/
docker-compose-epmd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: "3"
x-jellyfish-template: &jellyfish-template
build: .
environment: &jellyfish-environment
JF_SERVER_API_TOKEN: "development"
JF_DIST_ENABLED: "true"
JF_DIST_NODES: "app@app1 app@app2"
restart: on-failure
services:
test:
image: membraneframeworklabs/docker_membrane:latest
command:
- sh
- -c
- |
cd app/
mix deps.get
MIX_ENV=ci mix test --only cluster
volumes:
- .:/app
- /app/_build
- /app/deps
depends_on:
- app1
- app2
app1:
<<: *jellyfish-template
environment:
<<: *jellyfish-environment
JF_HOST: "localhost:4001"
JF_PORT: 4001
JF_DIST_NODE_NAME: app@app1
ports:
- 4001:4001
app2:
<<: *jellyfish-template
environment:
<<: *jellyfish-environment
JF_HOST: "localhost:4002"
JF_PORT: 4002
JF_DIST_NODE_NAME: app@app2
ports:
- 4002:4002