-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose-epmd.yaml
60 lines (56 loc) · 1.21 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3"
x-fishjam-template: &fishjam-template
build:
context: .
args:
- MIX_ENV=test
environment: &fishjam-environment
FJ_SERVER_API_TOKEN: "development"
FJ_DIST_ENABLED: "true"
FJ_DIST_NODES: "app@app1 app@app2"
MIX_ENV: "test"
FJ_FEATURE_FLAG_REQUEST_ROUTING_ENABLED: "true"
FJ_COMPONENTS_USED: "hls file"
volumes:
- ./test/fixtures:/app/fishjam_resources/file_component_sources
restart: on-failure
healthcheck:
interval: 1s
timeout: 8s
retries: 16
services:
test:
build:
context: .
target: build
args:
- MIX_ENV=test_cluster
command:
- sh
- -c
- mix test --only cluster
volumes:
- ./test:/app/test
depends_on:
app1:
condition: service_healthy
app2:
condition: service_healthy
app1:
<<: *fishjam-template
environment:
<<: *fishjam-environment
FJ_HOST: "localhost:4001"
FJ_PORT: 4001
FJ_DIST_NODE_NAME: app@app1
ports:
- 4001:4001
app2:
<<: *fishjam-template
environment:
<<: *fishjam-environment
FJ_HOST: "localhost:4002"
FJ_PORT: 4002
FJ_DIST_NODE_NAME: app@app2
ports:
- 4002:4002